com.softlayer.api.service.container.policy.Acceptance 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.container.policy;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
/**
* Represents the acceptance status of a Policy.
*
* @see SoftLayer_Container_Policy_Acceptance
*/
@ApiType("SoftLayer_Container_Policy_Acceptance")
public class Acceptance extends Entity {
/**
* Flag to indicate if a policy has been previously accepted.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Boolean acceptedFlag;
public Boolean getAcceptedFlag() {
return acceptedFlag;
}
public void setAcceptedFlag(Boolean acceptedFlag) {
acceptedFlagSpecified = true;
this.acceptedFlag = acceptedFlag;
}
protected boolean acceptedFlagSpecified;
public boolean isAcceptedFlagSpecified() {
return acceptedFlagSpecified;
}
public void unsetAcceptedFlag() {
acceptedFlag = null;
acceptedFlagSpecified = false;
}
/**
* Name of the policy for which we are representing it's acceptance status.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String policyName;
public String getPolicyName() {
return policyName;
}
public void setPolicyName(String policyName) {
policyNameSpecified = true;
this.policyName = policyName;
}
protected boolean policyNameSpecified;
public boolean isPolicyNameSpecified() {
return policyNameSpecified;
}
public void unsetPolicyName() {
policyName = null;
policyNameSpecified = false;
}
/**
* ID of the [[SoftLayer_Product_Item_Policy_Assignment]].
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long productPolicyAssignmentId;
public Long getProductPolicyAssignmentId() {
return productPolicyAssignmentId;
}
public void setProductPolicyAssignmentId(Long productPolicyAssignmentId) {
productPolicyAssignmentIdSpecified = true;
this.productPolicyAssignmentId = productPolicyAssignmentId;
}
protected boolean productPolicyAssignmentIdSpecified;
public boolean isProductPolicyAssignmentIdSpecified() {
return productPolicyAssignmentIdSpecified;
}
public void unsetProductPolicyAssignmentId() {
productPolicyAssignmentId = null;
productPolicyAssignmentIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask acceptedFlag() {
withLocalProperty("acceptedFlag");
return this;
}
public Mask policyName() {
withLocalProperty("policyName");
return this;
}
public Mask productPolicyAssignmentId() {
withLocalProperty("productPolicyAssignmentId");
return this;
}
}
}