Class GlobalLoadBalancer
- java.lang.Object
- 
- com.ibm.cloud.sdk.core.service.BaseService
- 
- com.ibm.cloud.networking.global_load_balancer.v1.GlobalLoadBalancer
 
 
- 
 public class GlobalLoadBalancer extends com.ibm.cloud.sdk.core.service.BaseServiceGlobal Load Balancer.- Version:
- v1
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
 - 
Constructor SummaryConstructors Constructor Description GlobalLoadBalancer(String crn, String zoneIdentifier, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `GlobalLoadBalancer` client.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<LoadBalancersResp>createLoadBalancer()Create load balancer.com.ibm.cloud.sdk.core.http.ServiceCall<LoadBalancersResp>createLoadBalancer(CreateLoadBalancerOptions createLoadBalancerOptions)Create load balancer.com.ibm.cloud.sdk.core.http.ServiceCall<DeleteLoadBalancersResp>deleteLoadBalancer(DeleteLoadBalancerOptions deleteLoadBalancerOptions)Delete load balancer.com.ibm.cloud.sdk.core.http.ServiceCall<LoadBalancersResp>editLoadBalancer(EditLoadBalancerOptions editLoadBalancerOptions)Edit load balancer.StringgetCrn()Gets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<LoadBalancersResp>getLoadBalancerSettings(GetLoadBalancerSettingsOptions getLoadBalancerSettingsOptions)Get load balancer.StringgetZoneIdentifier()Gets the zoneIdentifier.com.ibm.cloud.sdk.core.http.ServiceCall<ListLoadBalancersResp>listAllLoadBalancers()List all load balancers.com.ibm.cloud.sdk.core.http.ServiceCall<ListLoadBalancersResp>listAllLoadBalancers(ListAllLoadBalancersOptions listAllLoadBalancersOptions)List all load balancers.static GlobalLoadBalancernewInstance(String crn, String zoneIdentifier)Class method which constructs an instance of the `GlobalLoadBalancer` client.static GlobalLoadBalancernewInstance(String crn, String zoneIdentifier, String serviceName)Class method which constructs an instance of the `GlobalLoadBalancer` client.voidsetCrn(String crn)Sets the crn.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- 
GlobalLoadBalancerpublic GlobalLoadBalancer(String crn, String zoneIdentifier, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator) Constructs an instance of the `GlobalLoadBalancer` 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.
- 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 GlobalLoadBalancer newInstance(String crn, String zoneIdentifier) Class method which constructs an instance of the `GlobalLoadBalancer` client. The default service name is used to configure the client instance.- Parameters:
- crn- Full CRN of the service instance.
- zoneIdentifier- zone identifier.
- Returns:
- an instance of the `GlobalLoadBalancer` client using external configuration
 
 - 
newInstancepublic static GlobalLoadBalancer newInstance(String crn, String zoneIdentifier, String serviceName) Class method which constructs an instance of the `GlobalLoadBalancer` client. The specified service name is used to configure the client instance.- Parameters:
- crn- Full CRN of the service instance.
- zoneIdentifier- zone identifier.
- serviceName- the service name to be used when configuring the client instance
- Returns:
- an instance of the `GlobalLoadBalancer` 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.- Returns:
- the zoneIdentifier
 
 - 
setZoneIdentifierpublic void setZoneIdentifier(String zoneIdentifier) Sets the zoneIdentifier.- Parameters:
- zoneIdentifier- the new zoneIdentifier
 
 - 
listAllLoadBalancerspublic com.ibm.cloud.sdk.core.http.ServiceCall<ListLoadBalancersResp> listAllLoadBalancers(ListAllLoadBalancersOptions listAllLoadBalancersOptions) List all load balancers. List configured load balancers.- Parameters:
- listAllLoadBalancersOptions- the- ListAllLoadBalancersOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeListLoadBalancersResp
 
 - 
listAllLoadBalancerspublic com.ibm.cloud.sdk.core.http.ServiceCall<ListLoadBalancersResp> listAllLoadBalancers() List all load balancers. List configured load balancers.- Returns:
- a ServiceCallwith a result of typeListLoadBalancersResp
 
 - 
createLoadBalancerpublic com.ibm.cloud.sdk.core.http.ServiceCall<LoadBalancersResp> createLoadBalancer(CreateLoadBalancerOptions createLoadBalancerOptions) Create load balancer. Create a load balancer for a given zone. The zone should be active before placing an order of a load balancer.- Parameters:
- createLoadBalancerOptions- the- CreateLoadBalancerOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeLoadBalancersResp
 
 - 
createLoadBalancerpublic com.ibm.cloud.sdk.core.http.ServiceCall<LoadBalancersResp> createLoadBalancer() Create load balancer. Create a load balancer for a given zone. The zone should be active before placing an order of a load balancer.- Returns:
- a ServiceCallwith a result of typeLoadBalancersResp
 
 - 
editLoadBalancerpublic com.ibm.cloud.sdk.core.http.ServiceCall<LoadBalancersResp> editLoadBalancer(EditLoadBalancerOptions editLoadBalancerOptions) Edit load balancer. Edit porperties of an existing load balancer.- Parameters:
- editLoadBalancerOptions- the- EditLoadBalancerOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeLoadBalancersResp
 
 - 
deleteLoadBalancerpublic com.ibm.cloud.sdk.core.http.ServiceCall<DeleteLoadBalancersResp> deleteLoadBalancer(DeleteLoadBalancerOptions deleteLoadBalancerOptions) Delete load balancer. Delete a load balancer.- Parameters:
- deleteLoadBalancerOptions- the- DeleteLoadBalancerOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeDeleteLoadBalancersResp
 
 - 
getLoadBalancerSettingspublic com.ibm.cloud.sdk.core.http.ServiceCall<LoadBalancersResp> getLoadBalancerSettings(GetLoadBalancerSettingsOptions getLoadBalancerSettingsOptions) Get load balancer. For a given zone identifier and load balancer id, get the load balancer settings.- Parameters:
- getLoadBalancerSettingsOptions- the- GetLoadBalancerSettingsOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeLoadBalancersResp
 
 
- 
 
-