com.softlayer.api.service.software.component.OperatingSystem 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.software.component;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.hardware.component.partition.Template;
import com.softlayer.api.service.provisioning.version1.transaction.Group;
import com.softlayer.api.service.software.Component;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;
/**
* SoftLayer_Software_Component_OperatingSystem extends the [[SoftLayer_Software_Component]] data type to include operating system specific properties.
*
* @see SoftLayer_Software_Component_OperatingSystem
*/
@ApiType("SoftLayer_Software_Component_OperatingSystem")
public class OperatingSystem extends Component {
/**
* The date in which the license for this software expires.
*/
@ApiProperty
protected GregorianCalendar licenseExpirationDate;
public GregorianCalendar getLicenseExpirationDate() {
return licenseExpirationDate;
}
public void setLicenseExpirationDate(GregorianCalendar licenseExpirationDate) {
this.licenseExpirationDate = licenseExpirationDate;
}
/**
* An operating system's associated [[SoftLayer_Hardware_Component_Partition_Template|Partition Templates]] that can be used to configure a hardware drive.
*/
@ApiProperty
protected List partitionTemplates;
public List getPartitionTemplates() {
if (partitionTemplates == null) {
partitionTemplates = new ArrayList();
}
return partitionTemplates;
}
/**
* An operating systems associated [[SoftLayer_Provisioning_Version1_Transaction_Group|Transaction Group]]. A transaction group is a list of operations that will occur during the installment of an operating system.
*/
@ApiProperty
protected Group reloadTransactionGroup;
public Group getReloadTransactionGroup() {
return reloadTransactionGroup;
}
public void setReloadTransactionGroup(Group reloadTransactionGroup) {
this.reloadTransactionGroup = reloadTransactionGroup;
}
/**
* A count of an operating system's associated [[SoftLayer_Hardware_Component_Partition_Template|Partition Templates]] that can be used to configure a hardware drive.
*/
@ApiProperty
protected Long partitionTemplateCount;
public Long getPartitionTemplateCount() {
return partitionTemplateCount;
}
public void setPartitionTemplateCount(Long partitionTemplateCount) {
this.partitionTemplateCount = partitionTemplateCount;
}
public static class Mask extends com.softlayer.api.service.software.Component.Mask {
public Mask licenseExpirationDate() {
withLocalProperty("licenseExpirationDate");
return this;
}
public com.softlayer.api.service.hardware.component.partition.Template.Mask partitionTemplates() {
return withSubMask("partitionTemplates", com.softlayer.api.service.hardware.component.partition.Template.Mask.class);
}
public com.softlayer.api.service.provisioning.version1.transaction.Group.Mask reloadTransactionGroup() {
return withSubMask("reloadTransactionGroup", com.softlayer.api.service.provisioning.version1.transaction.Group.Mask.class);
}
public Mask partitionTemplateCount() {
withLocalProperty("partitionTemplateCount");
return this;
}
}
}