Class Restriction
- java.lang.Object
-
- com.softlayer.api.Type
-
- com.softlayer.api.service.Entity
-
- com.softlayer.api.service.product.item.price.account.Restriction
-
@ApiType("SoftLayer_Product_Item_Price_Account_Restriction") public class Restriction extends Entity
The SoftLayer_Product_Item_Price data type gives more information about the item price restrictions. An item price may be restricted to one or more accounts. If the item price is restricted to an account, only that account will see the restriction details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Restriction.Mask
-
Field Summary
Fields Modifier and Type Field Description protected Account
account
The account the item price is restricted to.protected Long
accountId
The account id for the item price account restriction.protected boolean
accountIdSpecified
protected Long
id
The unique identifier for the item price account restriction.protected boolean
idSpecified
protected Price
itemPrice
The item price that has the account restriction.protected Long
itemPriceId
The item price id for the item price account restriction.protected boolean
itemPriceIdSpecified
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description Restriction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Account
getAccount()
Long
getAccountId()
Long
getId()
Price
getItemPrice()
Long
getItemPriceId()
boolean
isAccountIdSpecified()
boolean
isIdSpecified()
boolean
isItemPriceIdSpecified()
void
setAccount(Account account)
void
setAccountId(Long accountId)
void
setId(Long id)
void
setItemPrice(Price itemPrice)
void
setItemPriceId(Long itemPriceId)
void
unsetAccountId()
void
unsetId()
void
unsetItemPriceId()
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
account
@ApiProperty protected Account account
The account the item price is restricted to.
-
itemPrice
@ApiProperty protected Price itemPrice
The item price that has the account restriction.
-
accountId
@ApiProperty(canBeNullOrNotSet=true) protected Long accountId
The account id for the item price account restriction.
-
accountIdSpecified
protected boolean accountIdSpecified
-
id
@ApiProperty(canBeNullOrNotSet=true) protected Long id
The unique identifier for the item price account restriction.
-
idSpecified
protected boolean idSpecified
-
itemPriceId
@ApiProperty(canBeNullOrNotSet=true) protected Long itemPriceId
The item price id for the item price account restriction.
-
itemPriceIdSpecified
protected boolean itemPriceIdSpecified
-
-
Method Detail
-
getAccount
public Account getAccount()
-
setAccount
public void setAccount(Account account)
-
getItemPrice
public Price getItemPrice()
-
setItemPrice
public void setItemPrice(Price itemPrice)
-
getAccountId
public Long getAccountId()
-
setAccountId
public void setAccountId(Long accountId)
-
isAccountIdSpecified
public boolean isAccountIdSpecified()
-
unsetAccountId
public void unsetAccountId()
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
isIdSpecified
public boolean isIdSpecified()
-
unsetId
public void unsetId()
-
getItemPriceId
public Long getItemPriceId()
-
setItemPriceId
public void setItemPriceId(Long itemPriceId)
-
isItemPriceIdSpecified
public boolean isItemPriceIdSpecified()
-
unsetItemPriceId
public void unsetItemPriceId()
-
-