com.softlayer.api.service.billing.item.network.Subnet 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.billing.item.network;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.billing.Item;
/**
* The SoftLayer_Billing_Item_Network_Subnet data type contains general information relating to a single SoftLayer billing item whose item category code is one of the following:
* * pri_ip_address
* * static_sec_ip_addresses (static secondary)
* * sov_sec_ip_addresses (secondary on vlan, also known as "portable ips")
* * sov_sec_ip_addresses_pub (sov_sec_ip_addresses public only)
* * sov_sec_ip_addresses_priv (sov_sec_ip_addresses private only)
* * sec_ip_addresses (old style, secondary ip addresses)
*
*
* These item categories denote that the billing item has subnet information attached.
*
* @see SoftLayer_Billing_Item_Network_Subnet
*/
@ApiType("SoftLayer_Billing_Item_Network_Subnet")
public class Subnet extends Item {
/**
* The resource for a subnet-related billing item.
*/
@ApiProperty
protected com.softlayer.api.service.network.Subnet resource;
public com.softlayer.api.service.network.Subnet getResource() {
return resource;
}
public void setResource(com.softlayer.api.service.network.Subnet resource) {
this.resource = resource;
}
/**
* The resource name for a subnet billing item.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String resourceName;
public String getResourceName() {
return resourceName;
}
public void setResourceName(String resourceName) {
resourceNameSpecified = true;
this.resourceName = resourceName;
}
protected boolean resourceNameSpecified;
public boolean isResourceNameSpecified() {
return resourceNameSpecified;
}
public void unsetResourceName() {
resourceName = null;
resourceNameSpecified = false;
}
/**
* The resource (unique identifier) for a server billing item.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long resourceTableId;
public Long getResourceTableId() {
return resourceTableId;
}
public void setResourceTableId(Long resourceTableId) {
resourceTableIdSpecified = true;
this.resourceTableId = resourceTableId;
}
protected boolean resourceTableIdSpecified;
public boolean isResourceTableIdSpecified() {
return resourceTableIdSpecified;
}
public void unsetResourceTableId() {
resourceTableId = null;
resourceTableIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.billing.Item.Mask {
public com.softlayer.api.service.network.Subnet.Mask resource() {
return withSubMask("resource", com.softlayer.api.service.network.Subnet.Mask.class);
}
public Mask resourceName() {
withLocalProperty("resourceName");
return this;
}
public Mask resourceTableId() {
withLocalProperty("resourceTableId");
return this;
}
}
}