com.softlayer.api.service.virtual.guest.Attribute 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
The newest version!
package com.softlayer.api.service.virtual.guest;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.virtual.Guest;
import com.softlayer.api.service.virtual.guest.attribute.Type;
/**
* @see SoftLayer_Virtual_Guest_Attribute
*/
@ApiType("SoftLayer_Virtual_Guest_Attribute")
public class Attribute extends Entity {
@ApiProperty
protected Guest guest;
public Guest getGuest() {
return guest;
}
public void setGuest(Guest guest) {
this.guest = guest;
}
@ApiProperty
protected Type type;
public Type getType() {
return type;
}
public void setType(Type type) {
this.type = type;
}
/**
* A guest attribute's value.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String value;
public String getValue() {
return value;
}
public void setValue(String value) {
valueSpecified = true;
this.value = value;
}
protected boolean valueSpecified;
public boolean isValueSpecified() {
return valueSpecified;
}
public void unsetValue() {
value = null;
valueSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.virtual.Guest.Mask guest() {
return withSubMask("guest", com.softlayer.api.service.virtual.Guest.Mask.class);
}
public com.softlayer.api.service.virtual.guest.attribute.Type.Mask type() {
return withSubMask("type", com.softlayer.api.service.virtual.guest.attribute.Type.Mask.class);
}
public Mask value() {
withLocalProperty("value");
return this;
}
}
}