Class CustomerCountry
- java.lang.Object
-
- com.softlayer.api.Type
-
- com.softlayer.api.service.Entity
-
- com.softlayer.api.service.brand.restriction.location.CustomerCountry
-
@ApiType("SoftLayer_Brand_Restriction_Location_CustomerCountry") public class CustomerCountry extends Entity
The [[SoftLayer_Brand_Restriction_Location_CustomerCountry]] data type defines the relationship between brands, locations and countries associated with a user's account that are ineligible when ordering products. For example, the India datacenter may not be available on the SoftLayer US brand for customers that live in Great Britain.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CustomerCountry.Mask
static interface
CustomerCountry.Service
The [[SoftLayer_Brand_Restriction_Location_CustomerCountry]] service defines the relationship between brands, locations and countries associated with a user's account that are ineligible when ordering products.static interface
CustomerCountry.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected Brand
brand
This references the brand that has a brand-location-country restriction setup.protected Long
brandId
The brand associated with customer's account.protected boolean
brandIdSpecified
protected String
customerCountryCode
country code associated with customer's account.protected boolean
customerCountryCodeSpecified
protected Location
location
This references the datacenter that has a brand-location-country restriction setup.protected Long
locationId
The id for datacenter location.protected boolean
locationIdSpecified
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description CustomerCountry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Brand
getBrand()
Long
getBrandId()
String
getCustomerCountryCode()
Location
getLocation()
Long
getLocationId()
boolean
isBrandIdSpecified()
boolean
isCustomerCountryCodeSpecified()
boolean
isLocationIdSpecified()
static CustomerCountry.Service
service(ApiClient client)
void
setBrand(Brand brand)
void
setBrandId(Long brandId)
void
setCustomerCountryCode(String customerCountryCode)
void
setLocation(Location location)
void
setLocationId(Long locationId)
void
unsetBrandId()
void
unsetCustomerCountryCode()
void
unsetLocationId()
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
brand
@ApiProperty protected Brand brand
This references the brand that has a brand-location-country restriction setup.
-
location
@ApiProperty protected Location location
This references the datacenter that has a brand-location-country restriction setup. For example, if a datacenter is listed with a restriction for Canada, a Canadian customer may not be eligible to order services at that location.
-
brandId
@ApiProperty(canBeNullOrNotSet=true) protected Long brandId
The brand associated with customer's account.
-
brandIdSpecified
protected boolean brandIdSpecified
-
customerCountryCode
@ApiProperty(canBeNullOrNotSet=true) protected String customerCountryCode
country code associated with customer's account.
-
customerCountryCodeSpecified
protected boolean customerCountryCodeSpecified
-
locationId
@ApiProperty(canBeNullOrNotSet=true) protected Long locationId
The id for datacenter location.
-
locationIdSpecified
protected boolean locationIdSpecified
-
-
Method Detail
-
getBrand
public Brand getBrand()
-
setBrand
public void setBrand(Brand brand)
-
getLocation
public Location getLocation()
-
setLocation
public void setLocation(Location location)
-
getBrandId
public Long getBrandId()
-
setBrandId
public void setBrandId(Long brandId)
-
isBrandIdSpecified
public boolean isBrandIdSpecified()
-
unsetBrandId
public void unsetBrandId()
-
getCustomerCountryCode
public String getCustomerCountryCode()
-
setCustomerCountryCode
public void setCustomerCountryCode(String customerCountryCode)
-
isCustomerCountryCodeSpecified
public boolean isCustomerCountryCodeSpecified()
-
unsetCustomerCountryCode
public void unsetCustomerCountryCode()
-
getLocationId
public Long getLocationId()
-
setLocationId
public void setLocationId(Long locationId)
-
isLocationIdSpecified
public boolean isLocationIdSpecified()
-
unsetLocationId
public void unsetLocationId()
-
service
public static CustomerCountry.Service service(ApiClient client)
-
-