Class Zones
- java.lang.Object
- 
- com.ibm.cloud.sdk.core.service.BaseService
- 
- com.ibm.cloud.networking.zones.v1.Zones
 
 
- 
 public class Zones extends com.ibm.cloud.sdk.core.service.BaseServiceCIS Zones.- 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 com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp>createZone()Create zone.com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp>createZone(CreateZoneOptions createZoneOptions)Create zone.com.ibm.cloud.sdk.core.http.ServiceCall<DeleteZoneResp>deleteZone(DeleteZoneOptions deleteZoneOptions)Delete zone.StringgetCrn()Gets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp>getZone(GetZoneOptions getZoneOptions)Get zone.com.ibm.cloud.sdk.core.http.ServiceCall<ListZonesResp>listZones()List all zones.com.ibm.cloud.sdk.core.http.ServiceCall<ListZonesResp>listZones(ListZonesOptions listZonesOptions)List all zones.static ZonesnewInstance(String crn)Class method which constructs an instance of the `Zones` client.static ZonesnewInstance(String crn, String serviceName)Class method which constructs an instance of the `Zones` client.voidsetCrn(String crn)Sets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp>updateZone(UpdateZoneOptions updateZoneOptions)Update zone.com.ibm.cloud.sdk.core.http.ServiceCall<ZoneActivationcheckResp>zoneActivationCheck(ZoneActivationCheckOptions zoneActivationCheckOptions)Check zone.- 
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- 
Zonespublic Zones(String crn, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator) Constructs an instance of the `Zones` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
- crn- Full url-encoded CRN of the service instance.
- 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 Zones newInstance(String crn) Class method which constructs an instance of the `Zones` client. The default service name is used to configure the client instance.- Parameters:
- crn- Full url-encoded CRN of the service instance.
- Returns:
- an instance of the `Zones` client using external configuration
 
 - 
newInstancepublic static Zones newInstance(String crn, String serviceName) Class method which constructs an instance of the `Zones` client. The specified service name is used to configure the client instance.- Parameters:
- crn- Full url-encoded CRN of the service instance.
- serviceName- the service name to be used when configuring the client instance
- Returns:
- an instance of the `Zones` client using external configuration
 
 - 
getCrnpublic String getCrn() Gets the crn. Full url-encoded CRN of the service instance.- Returns:
- the crn
 
 - 
setCrnpublic void setCrn(String crn) Sets the crn.- Parameters:
- crn- the new crn
 
 - 
listZonespublic com.ibm.cloud.sdk.core.http.ServiceCall<ListZonesResp> listZones(ListZonesOptions listZonesOptions) List all zones. List all zones for a service instance.- Parameters:
- listZonesOptions- the- ListZonesOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeListZonesResp
 
 - 
listZonespublic com.ibm.cloud.sdk.core.http.ServiceCall<ListZonesResp> listZones() List all zones. List all zones for a service instance.- Returns:
- a ServiceCallwith a result of typeListZonesResp
 
 - 
createZonepublic com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp> createZone(CreateZoneOptions createZoneOptions) Create zone. Add a new zone for a given service instance.- Parameters:
- createZoneOptions- the- CreateZoneOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeZoneResp
 
 - 
createZonepublic com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp> createZone() Create zone. Add a new zone for a given service instance.- Returns:
- a ServiceCallwith a result of typeZoneResp
 
 - 
deleteZonepublic com.ibm.cloud.sdk.core.http.ServiceCall<DeleteZoneResp> deleteZone(DeleteZoneOptions deleteZoneOptions) Delete zone. Delete a zone given its id.- Parameters:
- deleteZoneOptions- the- DeleteZoneOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeDeleteZoneResp
 
 - 
getZonepublic com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp> getZone(GetZoneOptions getZoneOptions) Get zone. Get the details of a zone for a given service instance and given zone id.- Parameters:
- getZoneOptions- the- GetZoneOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeZoneResp
 
 - 
updateZonepublic com.ibm.cloud.sdk.core.http.ServiceCall<ZoneResp> updateZone(UpdateZoneOptions updateZoneOptions) Update zone. Update the paused field of the zone.- Parameters:
- updateZoneOptions- the- UpdateZoneOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeZoneResp
 
 - 
zoneActivationCheckpublic com.ibm.cloud.sdk.core.http.ServiceCall<ZoneActivationcheckResp> zoneActivationCheck(ZoneActivationCheckOptions zoneActivationCheckOptions) Check zone. Perform activation check on zone for status.- Parameters:
- zoneActivationCheckOptions- the- ZoneActivationCheckOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeZoneActivationcheckResp
 
 
- 
 
-