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
-
Constructor Summary
Constructors Constructor Description Restriction()
-
Method Summary
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()
-
Field Details
-
account
The account the item price is restricted to. -
itemPrice
The item price that has the account restriction. -
accountId
The account id for the item price account restriction. -
accountIdSpecified
protected boolean accountIdSpecified -
id
The unique identifier for the item price account restriction. -
idSpecified
protected boolean idSpecified -
itemPriceId
The item price id for the item price account restriction. -
itemPriceIdSpecified
protected boolean itemPriceIdSpecified
-
-
Constructor Details
-
Restriction
public Restriction()
-
-
Method Details
-
getAccount
-
setAccount
-
getItemPrice
-
setItemPrice
-
getAccountId
-
setAccountId
-
isAccountIdSpecified
public boolean isAccountIdSpecified() -
unsetAccountId
public void unsetAccountId() -
getId
-
setId
-
isIdSpecified
public boolean isIdSpecified() -
unsetId
public void unsetId() -
getItemPriceId
-
setItemPriceId
-
isItemPriceIdSpecified
public boolean isItemPriceIdSpecified() -
unsetItemPriceId
public void unsetItemPriceId()
-