Class FirewallRules
- java.lang.Object
- 
- com.ibm.cloud.sdk.core.service.BaseService
- 
- com.ibm.cloud.networking.firewall_rules.v1.FirewallRules
 
 
- 
 public class FirewallRules extends com.ibm.cloud.sdk.core.service.BaseServiceFirewall rules. API Version: 1.0.1
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
 - 
Constructor SummaryConstructors Constructor Description FirewallRules(String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `FirewallRules` client.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRulesResp>createFirewallRules(CreateFirewallRulesOptions createFirewallRulesOptions)Create firewall rules for a zone.com.ibm.cloud.sdk.core.http.ServiceCall<DeleteFirewallRuleResp>deleteFirewallRule(DeleteFirewallRuleOptions deleteFirewallRuleOptions)Delete a firewall rule.com.ibm.cloud.sdk.core.http.ServiceCall<DeleteFirewallRulesResp>deleteFirewallRules(DeleteFirewallRulesOptions deleteFirewallRulesOptions)Delete firewall rules.com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRuleResp>getFirewallRule(GetFirewallRuleOptions getFirewallRuleOptions)Get firewall rule details by id.com.ibm.cloud.sdk.core.http.ServiceCall<ListFirewallRulesResp>listAllFirewallRules(ListAllFirewallRulesOptions listAllFirewallRulesOptions)List all firewall rules for a zone.static FirewallRulesnewInstance()Class method which constructs an instance of the `FirewallRules` client.static FirewallRulesnewInstance(String serviceName)Class method which constructs an instance of the `FirewallRules` client.com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRuleResp>updateFirewallRule(UpdateFirewallRuleOptions updateFirewallRuleOptions)Update a firewall rule.com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRulesResp>updateFirewllRules(UpdateFirewllRulesOptions updateFirewllRulesOptions)Update firewall rules.- 
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- 
FirewallRulespublic FirewallRules(String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator) Constructs an instance of the `FirewallRules` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
- 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 FirewallRules newInstance() Class method which constructs an instance of the `FirewallRules` client. The default service name is used to configure the client instance.- Returns:
- an instance of the `FirewallRules` client using external configuration
 
 - 
newInstancepublic static FirewallRules newInstance(String serviceName) Class method which constructs an instance of the `FirewallRules` client. The specified service name is used to configure the client instance.- Parameters:
- serviceName- the service name to be used when configuring the client instance
- Returns:
- an instance of the `FirewallRules` client using external configuration
 
 - 
listAllFirewallRulespublic com.ibm.cloud.sdk.core.http.ServiceCall<ListFirewallRulesResp> listAllFirewallRules(ListAllFirewallRulesOptions listAllFirewallRulesOptions) List all firewall rules for a zone. List all firewall rules for a zone.- Parameters:
- listAllFirewallRulesOptions- the- ListAllFirewallRulesOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeListFirewallRulesResp
 
 - 
createFirewallRulespublic com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRulesResp> createFirewallRules(CreateFirewallRulesOptions createFirewallRulesOptions) Create firewall rules for a zone. Create new firewall rules for a given zone under a service instance.- Parameters:
- createFirewallRulesOptions- the- CreateFirewallRulesOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeFirewallRulesResp
 
 - 
updateFirewllRulespublic com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRulesResp> updateFirewllRules(UpdateFirewllRulesOptions updateFirewllRulesOptions) Update firewall rules. Update existing firewall rules for a given zone under a given service instance.- Parameters:
- updateFirewllRulesOptions- the- UpdateFirewllRulesOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeFirewallRulesResp
 
 - 
deleteFirewallRulespublic com.ibm.cloud.sdk.core.http.ServiceCall<DeleteFirewallRulesResp> deleteFirewallRules(DeleteFirewallRulesOptions deleteFirewallRulesOptions) Delete firewall rules. Delete firewall rules by filter ids.- Parameters:
- deleteFirewallRulesOptions- the- DeleteFirewallRulesOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeDeleteFirewallRulesResp
 
 - 
deleteFirewallRulepublic com.ibm.cloud.sdk.core.http.ServiceCall<DeleteFirewallRuleResp> deleteFirewallRule(DeleteFirewallRuleOptions deleteFirewallRuleOptions) Delete a firewall rule. Delete a firewall rule given its id.- Parameters:
- deleteFirewallRuleOptions- the- DeleteFirewallRuleOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeDeleteFirewallRuleResp
 
 - 
getFirewallRulepublic com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRuleResp> getFirewallRule(GetFirewallRuleOptions getFirewallRuleOptions) Get firewall rule details by id. Get the details of a firewall rule for a given zone under a given service instance.- Parameters:
- getFirewallRuleOptions- the- GetFirewallRuleOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeFirewallRuleResp
 
 - 
updateFirewallRulepublic com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRuleResp> updateFirewallRule(UpdateFirewallRuleOptions updateFirewallRuleOptions) Update a firewall rule. Update an existing firewall rule for a given zone under a given service instance.- Parameters:
- updateFirewallRuleOptions- the- UpdateFirewallRuleOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeFirewallRuleResp
 
 
- 
 
-