com.softlayer.api.service.container.resource.metadata.ServiceResource 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.container.resource.metadata;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.network.service.resource.Type;
/**
* The metadata service resource container is used to store information about a single service resource.
*
* @see SoftLayer_Container_Resource_Metadata_ServiceResource
*/
@ApiType("SoftLayer_Container_Resource_Metadata_ServiceResource")
public class ServiceResource extends Entity {
/**
* The backend IP address for this resource
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String backendIpAddress;
public String getBackendIpAddress() {
return backendIpAddress;
}
public void setBackendIpAddress(String backendIpAddress) {
backendIpAddressSpecified = true;
this.backendIpAddress = backendIpAddress;
}
protected boolean backendIpAddressSpecified;
public boolean isBackendIpAddressSpecified() {
return backendIpAddressSpecified;
}
public void unsetBackendIpAddress() {
backendIpAddress = null;
backendIpAddressSpecified = false;
}
/**
* The type for this resource
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Type type;
public Type getType() {
return type;
}
public void setType(Type type) {
typeSpecified = true;
this.type = type;
}
protected boolean typeSpecified;
public boolean isTypeSpecified() {
return typeSpecified;
}
public void unsetType() {
type = null;
typeSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask backendIpAddress() {
withLocalProperty("backendIpAddress");
return this;
}
public com.softlayer.api.service.network.service.resource.Type.Mask type() {
return withSubMask("type", com.softlayer.api.service.network.service.resource.Type.Mask.class);
}
}
}