Class FirewallAccessRules
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.BaseService
-
- com.ibm.cloud.networking.firewall_access_rules.v1.FirewallAccessRules
-
public class FirewallAccessRules extends com.ibm.cloud.sdk.core.service.BaseService
Instance Level Firewall Access Rules.- Version:
- v1
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SERVICE_NAME
static String
DEFAULT_SERVICE_URL
-
Constructor Summary
Constructors Constructor Description FirewallAccessRules(String crn, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs an instance of the `FirewallAccessRules` client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<AccountAccessRuleResp>
createAccountAccessRule()
Create instance level firewall access rule.com.ibm.cloud.sdk.core.http.ServiceCall<AccountAccessRuleResp>
createAccountAccessRule(CreateAccountAccessRuleOptions createAccountAccessRuleOptions)
Create instance level firewall access rule.com.ibm.cloud.sdk.core.http.ServiceCall<DeleteAccountAccessRuleResp>
deleteAccountAccessRule(DeleteAccountAccessRuleOptions deleteAccountAccessRuleOptions)
Delete instance level access rule.com.ibm.cloud.sdk.core.http.ServiceCall<AccountAccessRuleResp>
getAccountAccessRule(GetAccountAccessRuleOptions getAccountAccessRuleOptions)
Get instance level firewall access rule.String
getCrn()
Gets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<ListAccountAccessRulesResp>
listAllAccountAccessRules()
List instance level firewall access rules.com.ibm.cloud.sdk.core.http.ServiceCall<ListAccountAccessRulesResp>
listAllAccountAccessRules(ListAllAccountAccessRulesOptions listAllAccountAccessRulesOptions)
List instance level firewall access rules.static FirewallAccessRules
newInstance(String crn)
Class method which constructs an instance of the `FirewallAccessRules` client.static FirewallAccessRules
newInstance(String crn, String serviceName)
Class method which constructs an instance of the `FirewallAccessRules` client.void
setCrn(String crn)
Sets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<AccountAccessRuleResp>
updateAccountAccessRule(UpdateAccountAccessRuleOptions updateAccountAccessRuleOptions)
Update instance level firewall access rule.-
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseService
configureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
-
-
-
-
Field Detail
-
DEFAULT_SERVICE_NAME
public static final String DEFAULT_SERVICE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_URL
public static final String DEFAULT_SERVICE_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FirewallAccessRules
public FirewallAccessRules(String crn, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs an instance of the `FirewallAccessRules` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
crn
- Full crn of the service instance.serviceName
- the service name to be used when configuring the client instanceauthenticator
- theAuthenticator
instance to be configured for this client
-
-
Method Detail
-
newInstance
public static FirewallAccessRules newInstance(String crn)
Class method which constructs an instance of the `FirewallAccessRules` client. The default service name is used to configure the client instance.- Parameters:
crn
- Full crn of the service instance.- Returns:
- an instance of the `FirewallAccessRules` client using external configuration
-
newInstance
public static FirewallAccessRules newInstance(String crn, String serviceName)
Class method which constructs an instance of the `FirewallAccessRules` client. The specified service name is used to configure the client instance.- Parameters:
crn
- Full crn of the service instance.serviceName
- the service name to be used when configuring the client instance- Returns:
- an instance of the `FirewallAccessRules` client using external configuration
-
getCrn
public String getCrn()
Gets the crn. Full crn of the service instance.- Returns:
- the crn
-
setCrn
public void setCrn(String crn)
Sets the crn.- Parameters:
crn
- the new crn
-
listAllAccountAccessRules
public com.ibm.cloud.sdk.core.http.ServiceCall<ListAccountAccessRulesResp> listAllAccountAccessRules(ListAllAccountAccessRulesOptions listAllAccountAccessRulesOptions)
List instance level firewall access rules. List all instance level firewall access rules.- Parameters:
listAllAccountAccessRulesOptions
- theListAllAccountAccessRulesOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeListAccountAccessRulesResp
-
listAllAccountAccessRules
public com.ibm.cloud.sdk.core.http.ServiceCall<ListAccountAccessRulesResp> listAllAccountAccessRules()
List instance level firewall access rules. List all instance level firewall access rules.- Returns:
- a
ServiceCall
with a result of typeListAccountAccessRulesResp
-
createAccountAccessRule
public com.ibm.cloud.sdk.core.http.ServiceCall<AccountAccessRuleResp> createAccountAccessRule(CreateAccountAccessRuleOptions createAccountAccessRuleOptions)
Create instance level firewall access rule. Create a new instance level firewall access rule for a given service instance.- Parameters:
createAccountAccessRuleOptions
- theCreateAccountAccessRuleOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeAccountAccessRuleResp
-
createAccountAccessRule
public com.ibm.cloud.sdk.core.http.ServiceCall<AccountAccessRuleResp> createAccountAccessRule()
Create instance level firewall access rule. Create a new instance level firewall access rule for a given service instance.- Returns:
- a
ServiceCall
with a result of typeAccountAccessRuleResp
-
deleteAccountAccessRule
public com.ibm.cloud.sdk.core.http.ServiceCall<DeleteAccountAccessRuleResp> deleteAccountAccessRule(DeleteAccountAccessRuleOptions deleteAccountAccessRuleOptions)
Delete instance level access rule. Delete an instance level access rule given its id.- Parameters:
deleteAccountAccessRuleOptions
- theDeleteAccountAccessRuleOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeDeleteAccountAccessRuleResp
-
getAccountAccessRule
public com.ibm.cloud.sdk.core.http.ServiceCall<AccountAccessRuleResp> getAccountAccessRule(GetAccountAccessRuleOptions getAccountAccessRuleOptions)
Get instance level firewall access rule. Get the details of an instance level firewall access rule for a given service instance.- Parameters:
getAccountAccessRuleOptions
- theGetAccountAccessRuleOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeAccountAccessRuleResp
-
updateAccountAccessRule
public com.ibm.cloud.sdk.core.http.ServiceCall<AccountAccessRuleResp> updateAccountAccessRule(UpdateAccountAccessRuleOptions updateAccountAccessRuleOptions)
Update instance level firewall access rule. Update an existing instance level firewall access rule for a given service instance.- Parameters:
updateAccountAccessRuleOptions
- theUpdateAccountAccessRuleOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeAccountAccessRuleResp
-
-