com.softlayer.api.service.provisioning.version1.transaction.Status 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.provisioning.version1.transaction;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.provisioning.version1.Transaction;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
* The SoftLayer_Provisioning_Version1_Transaction_Status data type contains general information relating to a single SoftLayer hardware transaction status.
*
* SoftLayer customers are unable to change their hardware transaction status.
*
* @see SoftLayer_Provisioning_Version1_Transaction_Status
*/
@ApiType("SoftLayer_Provisioning_Version1_Transaction_Status")
public class Status extends Entity {
@ApiProperty
protected List nonCompletedTransactions;
public List getNonCompletedTransactions() {
if (nonCompletedTransactions == null) {
nonCompletedTransactions = new ArrayList();
}
return nonCompletedTransactions;
}
/**
* Hardware transaction status average duration.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected BigDecimal averageDuration;
public BigDecimal getAverageDuration() {
return averageDuration;
}
public void setAverageDuration(BigDecimal averageDuration) {
averageDurationSpecified = true;
this.averageDuration = averageDuration;
}
protected boolean averageDurationSpecified;
public boolean isAverageDurationSpecified() {
return averageDurationSpecified;
}
public void unsetAverageDuration() {
averageDuration = null;
averageDurationSpecified = false;
}
/**
* Transaction status friendly name.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String friendlyName;
public String getFriendlyName() {
return friendlyName;
}
public void setFriendlyName(String friendlyName) {
friendlyNameSpecified = true;
this.friendlyName = friendlyName;
}
protected boolean friendlyNameSpecified;
public boolean isFriendlyNameSpecified() {
return friendlyNameSpecified;
}
public void unsetFriendlyName() {
friendlyName = null;
friendlyNameSpecified = false;
}
/**
* Transaction status name.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String name;
public String getName() {
return name;
}
public void setName(String name) {
nameSpecified = true;
this.name = name;
}
protected boolean nameSpecified;
public boolean isNameSpecified() {
return nameSpecified;
}
public void unsetName() {
name = null;
nameSpecified = false;
}
/**
* A count of
*/
@ApiProperty
protected Long nonCompletedTransactionCount;
public Long getNonCompletedTransactionCount() {
return nonCompletedTransactionCount;
}
public void setNonCompletedTransactionCount(Long nonCompletedTransactionCount) {
this.nonCompletedTransactionCount = nonCompletedTransactionCount;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.provisioning.version1.Transaction.Mask nonCompletedTransactions() {
return withSubMask("nonCompletedTransactions", com.softlayer.api.service.provisioning.version1.Transaction.Mask.class);
}
public Mask averageDuration() {
withLocalProperty("averageDuration");
return this;
}
public Mask friendlyName() {
withLocalProperty("friendlyName");
return this;
}
public Mask name() {
withLocalProperty("name");
return this;
}
public Mask nonCompletedTransactionCount() {
withLocalProperty("nonCompletedTransactionCount");
return this;
}
}
}