Class Type
java.lang.Object
com.softlayer.api.Type
com.softlayer.api.service.Entity
com.softlayer.api.service.product.pkg.Type
@ApiType("SoftLayer_Product_Package_Type") public class Type extends Entity
The [[SoftLayer_Product_Package_Type]] object indicates the type for a service offering (package). The type can be used to filter packages. For example, if you are looking for the package representing virtual servers, you can filter on the type's key name of '''VIRTUAL_SERVER_INSTANCE'''. For bare metal servers by core or CPU, filter on '''BARE_METAL_CORE''' or '''BARE_METAL_CPU''', respectively.
- See Also:
- SoftLayer_Product_Package_Type
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Type.Mask
static interface
Type.Service
The [[SoftLayer_Product_Package_Type]] object indicates the type for a service offering (package).static interface
Type.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected Long
id
The package type's unique identifier.protected boolean
idSpecified
protected String
keyName
The unique key name of the package type.protected boolean
keyNameSpecified
protected String
name
The name of the package type.protected boolean
nameSpecified
protected Long
packageCount
A count of all the packages associated with the given package type.protected List<Package>
packages
All the packages associated with the given package type.Fields inherited from class com.softlayer.api.Type
unknownProperties
-
Constructor Summary
Constructors Constructor Description Type()
-
Method Summary
Modifier and Type Method Description Type.Service
asService(ApiClient client)
Long
getId()
String
getKeyName()
String
getName()
Long
getPackageCount()
List<Package>
getPackages()
boolean
isIdSpecified()
boolean
isKeyNameSpecified()
boolean
isNameSpecified()
static Type.Service
service(ApiClient client)
static Type.Service
service(ApiClient client, Long id)
void
setId(Long id)
void
setKeyName(String keyName)
void
setName(String name)
void
setPackageCount(Long packageCount)
void
unsetId()
void
unsetKeyName()
void
unsetName()
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
Field Details
-
packages
All the packages associated with the given package type. -
id
The package type's unique identifier. -
idSpecified
protected boolean idSpecified -
keyName
The unique key name of the package type. Use this value when filtering. -
keyNameSpecified
protected boolean keyNameSpecified -
name
The name of the package type. -
nameSpecified
protected boolean nameSpecified -
packageCount
A count of all the packages associated with the given package type.
-
-
Constructor Details
-
Type
public Type()
-
-
Method Details
-
getPackages
-
getId
-
setId
-
isIdSpecified
public boolean isIdSpecified() -
unsetId
public void unsetId() -
getKeyName
-
setKeyName
-
isKeyNameSpecified
public boolean isKeyNameSpecified() -
unsetKeyName
public void unsetKeyName() -
getName
-
setName
-
isNameSpecified
public boolean isNameSpecified() -
unsetName
public void unsetName() -
getPackageCount
-
setPackageCount
-
asService
-
service
-
service
-