Class FirewallApi
- java.lang.Object
- 
- com.ibm.cloud.sdk.core.service.BaseService
- 
- com.ibm.cloud.networking.firewall_api.v1.FirewallApi
 
 
- 
 public class FirewallApi extends com.ibm.cloud.sdk.core.service.BaseServiceFirewall API.- Version:
- v1
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
 - 
Constructor SummaryConstructors Constructor Description FirewallApi(String crn, String zoneIdentifier, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `FirewallApi` client.
 - 
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<SecurityLevelSettingResp>getSecurityLevelSetting()Get security level setting.com.ibm.cloud.sdk.core.http.ServiceCall<SecurityLevelSettingResp>getSecurityLevelSetting(GetSecurityLevelSettingOptions getSecurityLevelSettingOptions)Get security level setting.StringgetZoneIdentifier()Gets the zoneIdentifier.static FirewallApinewInstance(String crn, String zoneIdentifier)Class method which constructs an instance of the `FirewallApi` client.static FirewallApinewInstance(String crn, String zoneIdentifier, String serviceName)Class method which constructs an instance of the `FirewallApi` client.voidsetCrn(String crn)Sets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<SecurityLevelSettingResp>setSecurityLevelSetting()Set security level setting.com.ibm.cloud.sdk.core.http.ServiceCall<SecurityLevelSettingResp>setSecurityLevelSetting(SetSecurityLevelSettingOptions setSecurityLevelSettingOptions)Set security level setting.voidsetZoneIdentifier(String zoneIdentifier)Sets the zoneIdentifier.- 
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- 
FirewallApipublic FirewallApi(String crn, String zoneIdentifier, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator) Constructs an instance of the `FirewallApi` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
- crn- cloud resource name.
- zoneIdentifier- zone identifier.
- 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 FirewallApi newInstance(String crn, String zoneIdentifier) Class method which constructs an instance of the `FirewallApi` client. The default service name is used to configure the client instance.- Parameters:
- crn- cloud resource name.
- zoneIdentifier- zone identifier.
- Returns:
- an instance of the `FirewallApi` client using external configuration
 
 - 
newInstancepublic static FirewallApi newInstance(String crn, String zoneIdentifier, String serviceName) Class method which constructs an instance of the `FirewallApi` client. The specified service name is used to configure the client instance.- Parameters:
- crn- cloud resource name.
- zoneIdentifier- zone identifier.
- serviceName- the service name to be used when configuring the client instance
- Returns:
- an instance of the `FirewallApi` 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
 
 - 
getZoneIdentifierpublic String getZoneIdentifier() Gets the zoneIdentifier. zone identifier.- Returns:
- the zoneIdentifier
 
 - 
setZoneIdentifierpublic void setZoneIdentifier(String zoneIdentifier) Sets the zoneIdentifier.- Parameters:
- zoneIdentifier- the new zoneIdentifier
 
 - 
getSecurityLevelSettingpublic com.ibm.cloud.sdk.core.http.ServiceCall<SecurityLevelSettingResp> getSecurityLevelSetting(GetSecurityLevelSettingOptions getSecurityLevelSettingOptions) Get security level setting. For a given zone identifier, get security level setting.- Parameters:
- getSecurityLevelSettingOptions- the- GetSecurityLevelSettingOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeSecurityLevelSettingResp
 
 - 
getSecurityLevelSettingpublic com.ibm.cloud.sdk.core.http.ServiceCall<SecurityLevelSettingResp> getSecurityLevelSetting() Get security level setting. For a given zone identifier, get security level setting.- Returns:
- a ServiceCallwith a result of typeSecurityLevelSettingResp
 
 - 
setSecurityLevelSettingpublic com.ibm.cloud.sdk.core.http.ServiceCall<SecurityLevelSettingResp> setSecurityLevelSetting(SetSecurityLevelSettingOptions setSecurityLevelSettingOptions) Set security level setting. For a given zone identifier, set security level setting.- Parameters:
- setSecurityLevelSettingOptions- the- SetSecurityLevelSettingOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeSecurityLevelSettingResp
 
 - 
setSecurityLevelSettingpublic com.ibm.cloud.sdk.core.http.ServiceCall<SecurityLevelSettingResp> setSecurityLevelSetting() Set security level setting. For a given zone identifier, set security level setting.- Returns:
- a ServiceCallwith a result of typeSecurityLevelSettingResp
 
 
- 
 
-