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 Detail
-
packages
@ApiProperty protected List<Package> packages
All the packages associated with the given package type.
-
id
@ApiProperty(canBeNullOrNotSet=true) protected Long id
The package type's unique identifier.
-
idSpecified
protected boolean idSpecified
-
keyName
@ApiProperty(canBeNullOrNotSet=true) protected String keyName
The unique key name of the package type. Use this value when filtering.
-
keyNameSpecified
protected boolean keyNameSpecified
-
name
@ApiProperty(canBeNullOrNotSet=true) protected String name
The name of the package type.
-
nameSpecified
protected boolean nameSpecified
-
packageCount
@ApiProperty protected Long packageCount
A count of all the packages associated with the given package type.
-
-
Method Detail
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
isIdSpecified
public boolean isIdSpecified()
-
unsetId
public void unsetId()
-
getKeyName
public String getKeyName()
-
setKeyName
public void setKeyName(String keyName)
-
isKeyNameSpecified
public boolean isKeyNameSpecified()
-
unsetKeyName
public void unsetKeyName()
-
getName
public String getName()
-
setName
public void setName(String name)
-
isNameSpecified
public boolean isNameSpecified()
-
unsetName
public void unsetName()
-
getPackageCount
public Long getPackageCount()
-
setPackageCount
public void setPackageCount(Long packageCount)
-
asService
public Type.Service asService(ApiClient client)
-
service
public static Type.Service service(ApiClient client)
-
service
public static Type.Service service(ApiClient client, Long id)
-
-