com.softlayer.api.service.software.License 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
package com.softlayer.api.service.software;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Account;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.software.Description;
/**
* This class describes a specific type of license, like a Microsoft Windows Site License, a GPL license, or a license of another type.
*
* @see SoftLayer_Software_License
*/
@ApiType("SoftLayer_Software_License")
public class License extends Entity {
/**
* The account that owns this specific License instance.
*/
@ApiProperty
protected Account account;
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
/**
* The account that owns this specific License instance.
*/
@ApiProperty
protected Account owner;
public Account getOwner() {
return owner;
}
public void setOwner(Account owner) {
this.owner = owner;
}
/**
* A Description of the software that this license instance is valid for.
*/
@ApiProperty
protected Description softwareDescription;
public Description getSoftwareDescription() {
return softwareDescription;
}
public void setSoftwareDescription(Description softwareDescription) {
this.softwareDescription = softwareDescription;
}
/**
* An ID number for this specific License type.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
idSpecified = true;
this.id = id;
}
protected boolean idSpecified;
public boolean isIdSpecified() {
return idSpecified;
}
public void unsetId() {
id = null;
idSpecified = false;
}
/**
* The ID number of a Software Description that this specific license is valid for.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long softwareDescriptionId;
public Long getSoftwareDescriptionId() {
return softwareDescriptionId;
}
public void setSoftwareDescriptionId(Long softwareDescriptionId) {
softwareDescriptionIdSpecified = true;
this.softwareDescriptionId = softwareDescriptionId;
}
protected boolean softwareDescriptionIdSpecified;
public boolean isSoftwareDescriptionIdSpecified() {
return softwareDescriptionIdSpecified;
}
public void unsetSoftwareDescriptionId() {
softwareDescriptionId = null;
softwareDescriptionIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.Account.Mask account() {
return withSubMask("account", com.softlayer.api.service.Account.Mask.class);
}
public com.softlayer.api.service.Account.Mask owner() {
return withSubMask("owner", com.softlayer.api.service.Account.Mask.class);
}
public Description.Mask softwareDescription() {
return withSubMask("softwareDescription", Description.Mask.class);
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask softwareDescriptionId() {
withLocalProperty("softwareDescriptionId");
return this;
}
}
}