Package com.softlayer.api.service
Class Tag
- java.lang.Object
-
- com.softlayer.api.Type
-
- com.softlayer.api.service.Entity
-
- com.softlayer.api.service.Tag
-
@ApiType("SoftLayer_Tag") public class Tag extends Entity
The SoftLayer_Tag data type is an optional type associated with hardware. The account ID that the tag is tied to, and the tag itself are stored in this data type. There is also a flag to denote whether the tag is internal or not.- See Also:
- SoftLayer_Tag
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Tag.Mask
static interface
Tag.Service
SoftLayer's tagging service gives customers the ability to tag devices with keywords that can later be used to search upon.static interface
Tag.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected Account
account
The account to which the tag is tied.protected Long
accountId
Account the tag belongs to.protected boolean
accountIdSpecified
protected Long
id
Unique identifier for a tag.protected boolean
idSpecified
protected Long
internal
Indicates whether a tag is internal.protected boolean
internalSpecified
protected String
name
Name of the tag.protected boolean
nameSpecified
protected Long
referenceCount
A count of references that tie object to the tag.protected List<Reference>
references
References that tie object to the tag.-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description Tag()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tag.Service
asService(ApiClient client)
Account
getAccount()
Long
getAccountId()
Long
getId()
Long
getInternal()
String
getName()
Long
getReferenceCount()
List<Reference>
getReferences()
boolean
isAccountIdSpecified()
boolean
isIdSpecified()
boolean
isInternalSpecified()
boolean
isNameSpecified()
static Tag.Service
service(ApiClient client)
static Tag.Service
service(ApiClient client, Long id)
void
setAccount(Account account)
void
setAccountId(Long accountId)
void
setId(Long id)
void
setInternal(Long internal)
void
setName(String name)
void
setReferenceCount(Long referenceCount)
void
unsetAccountId()
void
unsetId()
void
unsetInternal()
void
unsetName()
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
account
@ApiProperty protected Account account
The account to which the tag is tied.
-
references
@ApiProperty protected List<Reference> references
References that tie object to the tag.
-
accountId
@ApiProperty(canBeNullOrNotSet=true) protected Long accountId
Account the tag belongs to.
-
accountIdSpecified
protected boolean accountIdSpecified
-
id
@ApiProperty(canBeNullOrNotSet=true) protected Long id
Unique identifier for a tag.
-
idSpecified
protected boolean idSpecified
-
internal
@ApiProperty(canBeNullOrNotSet=true) protected Long internal
Indicates whether a tag is internal.
-
internalSpecified
protected boolean internalSpecified
-
name
@ApiProperty(canBeNullOrNotSet=true) protected String name
Name of the tag. The characters permitted are A-Z, 0-9, whitespace,
-
nameSpecified
protected boolean nameSpecified
-
referenceCount
@ApiProperty protected Long referenceCount
A count of references that tie object to the tag.
-
-
Method Detail
-
getAccount
public Account getAccount()
-
setAccount
public void setAccount(Account account)
-
getAccountId
public Long getAccountId()
-
setAccountId
public void setAccountId(Long accountId)
-
isAccountIdSpecified
public boolean isAccountIdSpecified()
-
unsetAccountId
public void unsetAccountId()
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
isIdSpecified
public boolean isIdSpecified()
-
unsetId
public void unsetId()
-
getInternal
public Long getInternal()
-
setInternal
public void setInternal(Long internal)
-
isInternalSpecified
public boolean isInternalSpecified()
-
unsetInternal
public void unsetInternal()
-
getName
public String getName()
-
setName
public void setName(String name)
-
isNameSpecified
public boolean isNameSpecified()
-
unsetName
public void unsetName()
-
getReferenceCount
public Long getReferenceCount()
-
setReferenceCount
public void setReferenceCount(Long referenceCount)
-
asService
public Tag.Service asService(ApiClient client)
-
service
public static Tag.Service service(ApiClient client)
-
service
public static Tag.Service service(ApiClient client, Long id)
-
-