com.softlayer.api.service.network.loadbalancer.global.Account Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
package com.softlayer.api.service.network.loadbalancer.global;
import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.billing.Item;
import com.softlayer.api.service.network.loadbalancer.global.Host;
import com.softlayer.api.service.network.loadbalancer.global.Type;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Future;
/**
* The global load balancer service has been deprecated and is no longer available.
*
* @see SoftLayer_Network_LoadBalancer_Global_Account
*/
@ApiType("SoftLayer_Network_LoadBalancer_Global_Account")
public class Account extends Entity {
/**
* Your SoftLayer customer account.
*/
@ApiProperty
protected com.softlayer.api.service.Account account;
public com.softlayer.api.service.Account getAccount() {
return account;
}
public void setAccount(com.softlayer.api.service.Account account) {
this.account = account;
}
/**
* The current billing item for a Global Load Balancer account.
*/
@ApiProperty
protected Item billingItem;
public Item getBillingItem() {
return billingItem;
}
public void setBillingItem(Item billingItem) {
this.billingItem = billingItem;
}
/**
* The hosts in the load balancing pool for a global load balancer account.
*/
@ApiProperty
protected List hosts;
public List getHosts() {
if (hosts == null) {
hosts = new ArrayList();
}
return hosts;
}
/**
* The load balance method of a global load balancer account
*/
@ApiProperty
protected Type loadBalanceType;
public Type getLoadBalanceType() {
return loadBalanceType;
}
public void setLoadBalanceType(Type loadBalanceType) {
this.loadBalanceType = loadBalanceType;
}
/**
* A flag indicating that the global load balancer is a managed resource.
*/
@ApiProperty
protected Boolean managedResourceFlag;
public Boolean getManagedResourceFlag() {
return managedResourceFlag;
}
public void setManagedResourceFlag(Boolean managedResourceFlag) {
this.managedResourceFlag = managedResourceFlag;
}
/**
* The maximum number of hosts that a global load balancer account is allowed to have.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long allowedNumberOfHosts;
public Long getAllowedNumberOfHosts() {
return allowedNumberOfHosts;
}
public void setAllowedNumberOfHosts(Long allowedNumberOfHosts) {
allowedNumberOfHostsSpecified = true;
this.allowedNumberOfHosts = allowedNumberOfHosts;
}
protected boolean allowedNumberOfHostsSpecified;
public boolean isAllowedNumberOfHostsSpecified() {
return allowedNumberOfHostsSpecified;
}
public void unsetAllowedNumberOfHosts() {
allowedNumberOfHosts = null;
allowedNumberOfHostsSpecified = false;
}
/**
* The average amount of connections per second used within the current billing cycle. This number is updated daily.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected BigDecimal averageConnectionsPerSecond;
public BigDecimal getAverageConnectionsPerSecond() {
return averageConnectionsPerSecond;
}
public void setAverageConnectionsPerSecond(BigDecimal averageConnectionsPerSecond) {
averageConnectionsPerSecondSpecified = true;
this.averageConnectionsPerSecond = averageConnectionsPerSecond;
}
protected boolean averageConnectionsPerSecondSpecified;
public boolean isAverageConnectionsPerSecondSpecified() {
return averageConnectionsPerSecondSpecified;
}
public void unsetAverageConnectionsPerSecond() {
averageConnectionsPerSecond = null;
averageConnectionsPerSecondSpecified = false;
}
/**
* The amount of connections per second a global load balancer account may use within a billing cycle without being billed for an overage.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long connectionsPerSecond;
public Long getConnectionsPerSecond() {
return connectionsPerSecond;
}
public void setConnectionsPerSecond(Long connectionsPerSecond) {
connectionsPerSecondSpecified = true;
this.connectionsPerSecond = connectionsPerSecond;
}
protected boolean connectionsPerSecondSpecified;
public boolean isConnectionsPerSecondSpecified() {
return connectionsPerSecondSpecified;
}
public void unsetConnectionsPerSecond() {
connectionsPerSecond = null;
connectionsPerSecondSpecified = false;
}
/**
* The IP address that will be return to a DNS request when none of the hosts for a global load balancer account could be returned.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String fallbackIp;
public String getFallbackIp() {
return fallbackIp;
}
public void setFallbackIp(String fallbackIp) {
fallbackIpSpecified = true;
this.fallbackIp = fallbackIp;
}
protected boolean fallbackIpSpecified;
public boolean isFallbackIpSpecified() {
return fallbackIpSpecified;
}
public void unsetFallbackIp() {
fallbackIp = null;
fallbackIpSpecified = false;
}
/**
* The hostname of a global load balancer account that is being load balanced.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String hostname;
public String getHostname() {
return hostname;
}
public void setHostname(String hostname) {
hostnameSpecified = true;
this.hostname = hostname;
}
protected boolean hostnameSpecified;
public boolean isHostnameSpecified() {
return hostnameSpecified;
}
public void unsetHostname() {
hostname = null;
hostnameSpecified = false;
}
/**
* The unique identifier of a global load balancer account.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
idSpecified = true;
this.id = id;
}
protected boolean idSpecified;
public boolean isIdSpecified() {
return idSpecified;
}
public void unsetId() {
id = null;
idSpecified = false;
}
/**
* The identifier of the load balance method for a global load balancer account.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long loadBalanceTypeId;
public Long getLoadBalanceTypeId() {
return loadBalanceTypeId;
}
public void setLoadBalanceTypeId(Long loadBalanceTypeId) {
loadBalanceTypeIdSpecified = true;
this.loadBalanceTypeId = loadBalanceTypeId;
}
protected boolean loadBalanceTypeIdSpecified;
public boolean isLoadBalanceTypeIdSpecified() {
return loadBalanceTypeIdSpecified;
}
public void unsetLoadBalanceTypeId() {
loadBalanceTypeId = null;
loadBalanceTypeIdSpecified = false;
}
/**
* Additional customer defined information for a global load balancer account.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String notes;
public String getNotes() {
return notes;
}
public void setNotes(String notes) {
notesSpecified = true;
this.notes = notes;
}
protected boolean notesSpecified;
public boolean isNotesSpecified() {
return notesSpecified;
}
public void unsetNotes() {
notes = null;
notesSpecified = false;
}
/**
* A count of the hosts in the load balancing pool for a global load balancer account.
*/
@ApiProperty
protected Long hostCount;
public Long getHostCount() {
return hostCount;
}
public void setHostCount(Long hostCount) {
this.hostCount = hostCount;
}
public Service asService(ApiClient client) {
return service(client, id);
}
public static Service service(ApiClient client) {
return client.createService(Service.class, null);
}
public static Service service(ApiClient client, Long id) {
return client.createService(Service.class, id == null ? null : id.toString());
}
/**
* The global load balancer service has been deprecated and is no longer available.
*
* A global load balancer account enables you to load balance traffic between servers that are in geographically diverse locations. SoftLayer's global load balancers act as a highly modified DNS server. SoftLayer's global load balancers work by accepting DNS requests for a specific hostname, choosing a host from a load balancing pool using the load balance method specified, and returning a destination IP address through a DNS response.
*
* @see SoftLayer_Network_LoadBalancer_Global_Account
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Network_LoadBalancer_Global_Account")
public static interface Service extends com.softlayer.api.Service {
public ServiceAsync asAsync();
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* The global load balancer service has been deprecated and is no longer available.
*
* If your globally load balanced domain is hosted on the SoftLayer nameservers this method will add the required NS resource record to your DNS zone file and remove any A records that match the host portion of a global load balancer account hostname.
*
* @see SoftLayer_Network_LoadBalancer_Global_Account::addNsRecord
*/
@ApiMethod(instanceRequired = true)
public Boolean addNsRecord();
/**
* The global load balancer service has been deprecated and is no longer available.
*
* Edit the properties of a global load balancer account by passing in a modified instance of the object.
*
* @see SoftLayer_Network_LoadBalancer_Global_Account::editObject
*/
@ApiMethod(instanceRequired = true)
public Boolean editObject(Account templateObject);
/**
* The global load balancer service has been deprecated and is no longer available.
*
* @see SoftLayer_Network_LoadBalancer_Global_Account::getObject
*/
@ApiMethod(instanceRequired = true)
public Account getObject();
/**
* The global load balancer service has been deprecated and is no longer available.
*
* If your globally load balanced domain is hosted on the SoftLayer nameservers this method will remove the NS resource record from your DNS zone file.
*
* @see SoftLayer_Network_LoadBalancer_Global_Account::removeNsRecord
*/
@ApiMethod(instanceRequired = true)
public Boolean removeNsRecord();
/**
* Your SoftLayer customer account.
*
* @see SoftLayer_Network_LoadBalancer_Global_Account::getAccount
*/
@ApiMethod(instanceRequired = true)
public com.softlayer.api.service.Account getAccount();
/**
* The current billing item for a Global Load Balancer account.
*
* @see SoftLayer_Network_LoadBalancer_Global_Account::getBillingItem
*/
@ApiMethod(instanceRequired = true)
public Item getBillingItem();
/**
* The hosts in the load balancing pool for a global load balancer account.
*
* @see SoftLayer_Network_LoadBalancer_Global_Account::getHosts
*/
@ApiMethod(instanceRequired = true)
public List getHosts();
/**
* The load balance method of a global load balancer account
*
* @see SoftLayer_Network_LoadBalancer_Global_Account::getLoadBalanceType
*/
@ApiMethod(instanceRequired = true)
public Type getLoadBalanceType();
/**
* A flag indicating that the global load balancer is a managed resource.
*
* @see SoftLayer_Network_LoadBalancer_Global_Account::getManagedResourceFlag
*/
@ApiMethod(instanceRequired = true)
public Boolean getManagedResourceFlag();
}
public static interface ServiceAsync extends com.softlayer.api.ServiceAsync {
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Async version of {@link Service#addNsRecord}
*/
public Future addNsRecord();
public Future> addNsRecord(ResponseHandler callback);
/**
* Async version of {@link Service#editObject}
*/
public Future editObject(Account templateObject);
public Future> editObject(Account templateObject, ResponseHandler callback);
/**
* Async version of {@link Service#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
/**
* Async version of {@link Service#removeNsRecord}
*/
public Future removeNsRecord();
public Future> removeNsRecord(ResponseHandler callback);
/**
* Async version of {@link Service#getAccount}
*/
public Future getAccount();
/**
* Async callback version of {@link Service#getAccount}
*/
public Future> getAccount(ResponseHandler callback);
/**
* Async version of {@link Service#getBillingItem}
*/
public Future- getBillingItem();
/**
* Async callback version of {@link Service#getBillingItem}
*/
public Future> getBillingItem(ResponseHandler
- callback);
/**
* Async version of {@link Service#getHosts}
*/
public Future
> getHosts();
/**
* Async callback version of {@link Service#getHosts}
*/
public Future> getHosts(ResponseHandler> callback);
/**
* Async version of {@link Service#getLoadBalanceType}
*/
public Future getLoadBalanceType();
/**
* Async callback version of {@link Service#getLoadBalanceType}
*/
public Future> getLoadBalanceType(ResponseHandler callback);
/**
* Async version of {@link Service#getManagedResourceFlag}
*/
public Future getManagedResourceFlag();
/**
* Async callback version of {@link Service#getManagedResourceFlag}
*/
public Future> getManagedResourceFlag(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.Account.Mask account() {
return withSubMask("account", com.softlayer.api.service.Account.Mask.class);
}
public com.softlayer.api.service.billing.Item.Mask billingItem() {
return withSubMask("billingItem", com.softlayer.api.service.billing.Item.Mask.class);
}
public Host.Mask hosts() {
return withSubMask("hosts", Host.Mask.class);
}
public Type.Mask loadBalanceType() {
return withSubMask("loadBalanceType", Type.Mask.class);
}
public Mask managedResourceFlag() {
withLocalProperty("managedResourceFlag");
return this;
}
public Mask allowedNumberOfHosts() {
withLocalProperty("allowedNumberOfHosts");
return this;
}
public Mask averageConnectionsPerSecond() {
withLocalProperty("averageConnectionsPerSecond");
return this;
}
public Mask connectionsPerSecond() {
withLocalProperty("connectionsPerSecond");
return this;
}
public Mask fallbackIp() {
withLocalProperty("fallbackIp");
return this;
}
public Mask hostname() {
withLocalProperty("hostname");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask loadBalanceTypeId() {
withLocalProperty("loadBalanceTypeId");
return this;
}
public Mask notes() {
withLocalProperty("notes");
return this;
}
public Mask hostCount() {
withLocalProperty("hostCount");
return this;
}
}
}