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
-
Constructor Summary
Constructors Constructor Description CustomerCountry()
-
Method Summary
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()
-
Field Details
-
brand
This references the brand that has a brand-location-country restriction setup. -
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
The brand associated with customer's account. -
brandIdSpecified
protected boolean brandIdSpecified -
customerCountryCode
country code associated with customer's account. -
customerCountryCodeSpecified
protected boolean customerCountryCodeSpecified -
locationId
The id for datacenter location. -
locationIdSpecified
protected boolean locationIdSpecified
-
-
Constructor Details
-
CustomerCountry
public CustomerCountry()
-
-
Method Details
-
getBrand
-
setBrand
-
getLocation
-
setLocation
-
getBrandId
-
setBrandId
-
isBrandIdSpecified
public boolean isBrandIdSpecified() -
unsetBrandId
public void unsetBrandId() -
getCustomerCountryCode
-
setCustomerCountryCode
-
isCustomerCountryCodeSpecified
public boolean isCustomerCountryCodeSpecified() -
unsetCustomerCountryCode
public void unsetCustomerCountryCode() -
getLocationId
-
setLocationId
-
isLocationIdSpecified
public boolean isLocationIdSpecified() -
unsetLocationId
public void unsetLocationId() -
service
-