com.softlayer.api.service.container.product.Promotion 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.container.product;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.Location;
import com.softlayer.api.service.container.product.promotion.RequirementGroup;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;
/**
* The SoftLayer_Container_Product_Promotion data type contains information about a promotion and its requirements.
*
* @see SoftLayer_Container_Product_Promotion
*/
@ApiType("SoftLayer_Container_Product_Promotion")
public class Promotion extends Entity {
@ApiProperty(canBeNullOrNotSet = true)
protected String code;
public String getCode() {
return code;
}
public void setCode(String code) {
codeSpecified = true;
this.code = code;
}
protected boolean codeSpecified;
public boolean isCodeSpecified() {
return codeSpecified;
}
public void unsetCode() {
code = null;
codeSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar expirationDate;
public GregorianCalendar getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(GregorianCalendar expirationDate) {
expirationDateSpecified = true;
this.expirationDate = expirationDate;
}
protected boolean expirationDateSpecified;
public boolean isExpirationDateSpecified() {
return expirationDateSpecified;
}
public void unsetExpirationDate() {
expirationDate = null;
expirationDateSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected List locations;
public List getLocations() {
if (locations == null) {
locations = new ArrayList();
}
return locations;
}
protected boolean locationsSpecified;
public boolean isLocationsSpecified() {
return locationsSpecified;
}
public void unsetLocations() {
locations = null;
locationsSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected List requirementGroups;
public List getRequirementGroups() {
if (requirementGroups == null) {
requirementGroups = new ArrayList();
}
return requirementGroups;
}
protected boolean requirementGroupsSpecified;
public boolean isRequirementGroupsSpecified() {
return requirementGroupsSpecified;
}
public void unsetRequirementGroups() {
requirementGroups = null;
requirementGroupsSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Mask code() {
withLocalProperty("code");
return this;
}
public Mask expirationDate() {
withLocalProperty("expirationDate");
return this;
}
public com.softlayer.api.service.Location.Mask locations() {
return withSubMask("locations", com.softlayer.api.service.Location.Mask.class);
}
public com.softlayer.api.service.container.product.promotion.RequirementGroup.Mask requirementGroups() {
return withSubMask("requirementGroups", com.softlayer.api.service.container.product.promotion.RequirementGroup.Mask.class);
}
}
}