Package com.softlayer.api.service.scale
Class Asset
- java.lang.Object
-
- com.softlayer.api.Type
-
- com.softlayer.api.service.Entity
-
- com.softlayer.api.service.scale.Asset
-
@ApiType("SoftLayer_Scale_Asset") public class Asset extends Entity
The base asset of a scale group. Assets are fixed, non-volatile units of a scale group. They are pinned to the group and will not be automatically added or removed. Their primary purpose is to provide information for the policies to use to determine when to scale members.- See Also:
- SoftLayer_Scale_Asset
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Asset.Mask
static interface
Asset.Service
The base asset of a scale group.static interface
Asset.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected GregorianCalendar
createDate
When this asset was created.protected boolean
createDateSpecified
protected Boolean
deleteFlag
When set and true any edit that happens on this object, be it calling edit on this directly or setting as a child while editing a parent object, will end up being a deletion.protected boolean
deleteFlagSpecified
protected Long
id
An asset's internal identifier.protected boolean
idSpecified
protected Group
scaleGroup
The group this asset belongs to.protected Long
scaleGroupId
The identifier of the group this asset belongs to.protected boolean
scaleGroupIdSpecified
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description Asset()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Asset.Service
asService(ApiClient client)
GregorianCalendar
getCreateDate()
Boolean
getDeleteFlag()
Long
getId()
Group
getScaleGroup()
Long
getScaleGroupId()
boolean
isCreateDateSpecified()
boolean
isDeleteFlagSpecified()
boolean
isIdSpecified()
boolean
isScaleGroupIdSpecified()
static Asset.Service
service(ApiClient client)
static Asset.Service
service(ApiClient client, Long id)
void
setCreateDate(GregorianCalendar createDate)
void
setDeleteFlag(Boolean deleteFlag)
void
setId(Long id)
void
setScaleGroup(Group scaleGroup)
void
setScaleGroupId(Long scaleGroupId)
void
unsetCreateDate()
void
unsetDeleteFlag()
void
unsetId()
void
unsetScaleGroupId()
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
scaleGroup
@ApiProperty protected Group scaleGroup
The group this asset belongs to.
-
createDate
@ApiProperty(canBeNullOrNotSet=true) protected GregorianCalendar createDate
When this asset was created.
-
createDateSpecified
protected boolean createDateSpecified
-
deleteFlag
@ApiProperty(canBeNullOrNotSet=true) protected Boolean deleteFlag
When set and true any edit that happens on this object, be it calling edit on this directly or setting as a child while editing a parent object, will end up being a deletion.
-
deleteFlagSpecified
protected boolean deleteFlagSpecified
-
id
@ApiProperty(canBeNullOrNotSet=true) protected Long id
An asset's internal identifier.
-
idSpecified
protected boolean idSpecified
-
scaleGroupId
@ApiProperty(canBeNullOrNotSet=true) protected Long scaleGroupId
The identifier of the group this asset belongs to.
-
scaleGroupIdSpecified
protected boolean scaleGroupIdSpecified
-
-
Method Detail
-
getScaleGroup
public Group getScaleGroup()
-
setScaleGroup
public void setScaleGroup(Group scaleGroup)
-
getCreateDate
public GregorianCalendar getCreateDate()
-
setCreateDate
public void setCreateDate(GregorianCalendar createDate)
-
isCreateDateSpecified
public boolean isCreateDateSpecified()
-
unsetCreateDate
public void unsetCreateDate()
-
getDeleteFlag
public Boolean getDeleteFlag()
-
setDeleteFlag
public void setDeleteFlag(Boolean deleteFlag)
-
isDeleteFlagSpecified
public boolean isDeleteFlagSpecified()
-
unsetDeleteFlag
public void unsetDeleteFlag()
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
isIdSpecified
public boolean isIdSpecified()
-
unsetId
public void unsetId()
-
getScaleGroupId
public Long getScaleGroupId()
-
setScaleGroupId
public void setScaleGroupId(Long scaleGroupId)
-
isScaleGroupIdSpecified
public boolean isScaleGroupIdSpecified()
-
unsetScaleGroupId
public void unsetScaleGroupId()
-
asService
public Asset.Service asService(ApiClient client)
-
service
public static Asset.Service service(ApiClient client)
-
service
public static Asset.Service service(ApiClient client, Long id)
-
-