Class ZoneLockdown
- java.lang.Object
- 
- com.ibm.cloud.sdk.core.service.BaseService
- 
- com.ibm.cloud.networking.zone_lockdown.v1.ZoneLockdown
 
 
- 
 public class ZoneLockdown extends com.ibm.cloud.sdk.core.service.BaseServiceZone Lockdown.- Version:
- v1
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
 - 
Constructor SummaryConstructors Constructor Description ZoneLockdown(String crn, String zoneIdentifier, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `ZoneLockdown` client.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<LockdownResp>createZoneLockdownRule()Create lockdown rule.com.ibm.cloud.sdk.core.http.ServiceCall<LockdownResp>createZoneLockdownRule(CreateZoneLockdownRuleOptions createZoneLockdownRuleOptions)Create lockdown rule.com.ibm.cloud.sdk.core.http.ServiceCall<DeleteLockdownResp>deleteZoneLockdownRule(DeleteZoneLockdownRuleOptions deleteZoneLockdownRuleOptions)Delete lockdown rule.StringgetCrn()Gets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<LockdownResp>getLockdown(GetLockdownOptions getLockdownOptions)Get lockdown rule.StringgetZoneIdentifier()Gets the zoneIdentifier.com.ibm.cloud.sdk.core.http.ServiceCall<ListLockdownResp>listAllZoneLockownRules()List all lockdown rules.com.ibm.cloud.sdk.core.http.ServiceCall<ListLockdownResp>listAllZoneLockownRules(ListAllZoneLockownRulesOptions listAllZoneLockownRulesOptions)List all lockdown rules.static ZoneLockdownnewInstance(String crn, String zoneIdentifier)Class method which constructs an instance of the `ZoneLockdown` client.static ZoneLockdownnewInstance(String crn, String zoneIdentifier, String serviceName)Class method which constructs an instance of the `ZoneLockdown` client.voidsetCrn(String crn)Sets the crn.voidsetZoneIdentifier(String zoneIdentifier)Sets the zoneIdentifier.com.ibm.cloud.sdk.core.http.ServiceCall<LockdownResp>updateLockdownRule(UpdateLockdownRuleOptions updateLockdownRuleOptions)Update lockdown rule.- 
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- 
ZoneLockdownpublic ZoneLockdown(String crn, String zoneIdentifier, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator) Constructs an instance of the `ZoneLockdown` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
- crn- Full crn of the service instance.
- zoneIdentifier- Zone identifier (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 ZoneLockdown newInstance(String crn, String zoneIdentifier) Class method which constructs an instance of the `ZoneLockdown` client. The default service name is used to configure the client instance.- Parameters:
- crn- Full crn of the service instance.
- zoneIdentifier- Zone identifier (zone id).
- Returns:
- an instance of the `ZoneLockdown` client using external configuration
 
 - 
newInstancepublic static ZoneLockdown newInstance(String crn, String zoneIdentifier, String serviceName) Class method which constructs an instance of the `ZoneLockdown` client. The specified service name is used to configure the client instance.- Parameters:
- crn- Full crn of the service instance.
- zoneIdentifier- Zone identifier (zone id).
- serviceName- the service name to be used when configuring the client instance
- Returns:
- an instance of the `ZoneLockdown` client using external configuration
 
 - 
getCrnpublic String getCrn() Gets the crn. Full crn of the service instance.- Returns:
- the crn
 
 - 
setCrnpublic void setCrn(String crn) Sets the crn.- Parameters:
- crn- the new crn
 
 - 
getZoneIdentifierpublic String getZoneIdentifier() Gets the zoneIdentifier. Zone identifier (zone id).- Returns:
- the zoneIdentifier
 
 - 
setZoneIdentifierpublic void setZoneIdentifier(String zoneIdentifier) Sets the zoneIdentifier.- Parameters:
- zoneIdentifier- the new zoneIdentifier
 
 - 
listAllZoneLockownRulespublic com.ibm.cloud.sdk.core.http.ServiceCall<ListLockdownResp> listAllZoneLockownRules(ListAllZoneLockownRulesOptions listAllZoneLockownRulesOptions) List all lockdown rules. List all lockdown rules for a zone.- Parameters:
- listAllZoneLockownRulesOptions- the- ListAllZoneLockownRulesOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeListLockdownResp
 
 - 
listAllZoneLockownRulespublic com.ibm.cloud.sdk.core.http.ServiceCall<ListLockdownResp> listAllZoneLockownRules() List all lockdown rules. List all lockdown rules for a zone.- Returns:
- a ServiceCallwith a result of typeListLockdownResp
 
 - 
createZoneLockdownRulepublic com.ibm.cloud.sdk.core.http.ServiceCall<LockdownResp> createZoneLockdownRule(CreateZoneLockdownRuleOptions createZoneLockdownRuleOptions) Create lockdown rule. Create a new lockdown rule for a given zone under a service instance.- Parameters:
- createZoneLockdownRuleOptions- the- CreateZoneLockdownRuleOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeLockdownResp
 
 - 
createZoneLockdownRulepublic com.ibm.cloud.sdk.core.http.ServiceCall<LockdownResp> createZoneLockdownRule() Create lockdown rule. Create a new lockdown rule for a given zone under a service instance.- Returns:
- a ServiceCallwith a result of typeLockdownResp
 
 - 
deleteZoneLockdownRulepublic com.ibm.cloud.sdk.core.http.ServiceCall<DeleteLockdownResp> deleteZoneLockdownRule(DeleteZoneLockdownRuleOptions deleteZoneLockdownRuleOptions) Delete lockdown rule. Delete a lockdown rule for a particular zone, given its id.- Parameters:
- deleteZoneLockdownRuleOptions- the- DeleteZoneLockdownRuleOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeDeleteLockdownResp
 
 - 
getLockdownpublic com.ibm.cloud.sdk.core.http.ServiceCall<LockdownResp> getLockdown(GetLockdownOptions getLockdownOptions) Get lockdown rule. For a given service instance, zone id and lockdown rule id, get the lockdown rule details.- Parameters:
- getLockdownOptions- the- GetLockdownOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeLockdownResp
 
 - 
updateLockdownRulepublic com.ibm.cloud.sdk.core.http.ServiceCall<LockdownResp> updateLockdownRule(UpdateLockdownRuleOptions updateLockdownRuleOptions) Update lockdown rule. Update an existing lockdown rule for a given zone under a given service instance.- Parameters:
- updateLockdownRuleOptions- the- UpdateLockdownRuleOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeLockdownResp
 
 
- 
 
-