Class WafApi
- java.lang.Object
- 
- com.ibm.cloud.sdk.core.service.BaseService
- 
- com.ibm.cloud.networking.waf_api.v1.WafApi
 
 
- 
 public class WafApi extends com.ibm.cloud.sdk.core.service.BaseServiceThis document describes CIS WAF API.- Version:
- v1
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCrn()Gets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<WafResponse>getWafSettings()Get WAF setting.com.ibm.cloud.sdk.core.http.ServiceCall<WafResponse>getWafSettings(GetWafSettingsOptions getWafSettingsOptions)Get WAF setting.StringgetZoneId()Gets the zoneId.static WafApinewInstance(String crn, String zoneId)Class method which constructs an instance of the `WafApi` client.static WafApinewInstance(String crn, String zoneId, String serviceName)Class method which constructs an instance of the `WafApi` client.voidsetCrn(String crn)Sets the crn.voidsetZoneId(String zoneId)Sets the zoneId.com.ibm.cloud.sdk.core.http.ServiceCall<WafResponse>updateWafSettings()Set WAF setting.com.ibm.cloud.sdk.core.http.ServiceCall<WafResponse>updateWafSettings(UpdateWafSettingsOptions updateWafSettingsOptions)Set WAF setting.- 
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseServiceconfigureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_SERVICE_NAMEpublic static final String DEFAULT_SERVICE_NAME - See Also:
- Constant Field Values
 
 - 
DEFAULT_SERVICE_URLpublic static final String DEFAULT_SERVICE_URL - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
WafApipublic WafApi(String crn, String zoneId, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator) Constructs an instance of the `WafApi` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
- crn- cloud resource name.
- zoneId- zone id.
- serviceName- the service name to be used when configuring the client instance
- authenticator- the- Authenticatorinstance to be configured for this client
 
 
- 
 - 
Method Detail- 
newInstancepublic static WafApi newInstance(String crn, String zoneId) Class method which constructs an instance of the `WafApi` client. The default service name is used to configure the client instance.- Parameters:
- crn- cloud resource name.
- zoneId- zone id.
- Returns:
- an instance of the `WafApi` client using external configuration
 
 - 
newInstancepublic static WafApi newInstance(String crn, String zoneId, String serviceName) Class method which constructs an instance of the `WafApi` client. The specified service name is used to configure the client instance.- Parameters:
- crn- cloud resource name.
- zoneId- zone id.
- serviceName- the service name to be used when configuring the client instance
- Returns:
- an instance of the `WafApi` client using external configuration
 
 - 
getCrnpublic String getCrn() Gets the crn. cloud resource name.- Returns:
- the crn
 
 - 
setCrnpublic void setCrn(String crn) Sets the crn.- Parameters:
- crn- the new crn
 
 - 
getZoneIdpublic String getZoneId() Gets the zoneId. zone id.- Returns:
- the zoneId
 
 - 
setZoneIdpublic void setZoneId(String zoneId) Sets the zoneId.- Parameters:
- zoneId- the new zoneId
 
 - 
getWafSettingspublic com.ibm.cloud.sdk.core.http.ServiceCall<WafResponse> getWafSettings(GetWafSettingsOptions getWafSettingsOptions) Get WAF setting. Get WAF of a specific zone.- Parameters:
- getWafSettingsOptions- the- GetWafSettingsOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeWafResponse
 
 - 
getWafSettingspublic com.ibm.cloud.sdk.core.http.ServiceCall<WafResponse> getWafSettings() Get WAF setting. Get WAF of a specific zone.- Returns:
- a ServiceCallwith a result of typeWafResponse
 
 - 
updateWafSettingspublic com.ibm.cloud.sdk.core.http.ServiceCall<WafResponse> updateWafSettings(UpdateWafSettingsOptions updateWafSettingsOptions) Set WAF setting. Set WAF (on | off) for a specific zone.- Parameters:
- updateWafSettingsOptions- the- UpdateWafSettingsOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeWafResponse
 
 - 
updateWafSettingspublic com.ibm.cloud.sdk.core.http.ServiceCall<WafResponse> updateWafSettings() Set WAF setting. Set WAF (on | off) for a specific zone.- Returns:
- a ServiceCallwith a result of typeWafResponse
 
 
- 
 
-