BillingProfilePropertiesShipTo Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. AddressDetails - com.
azure. resourcemanager. billing. models. BillingProfilePropertiesShipTo
- com.
- com.
public final class BillingProfilePropertiesShipTo
extends AddressDetails
The default address where the products are shipped, or the services are being used. If a ship to is not specified for a product or a subscription, then this address will be used.
Constructor Summary
| Constructor | Description |
|---|---|
| BillingProfilePropertiesShipTo() |
Creates an instance of Billing |
Method Summary
Methods inherited from AddressDetails
Methods inherited from java.lang.Object
Constructor Details
BillingProfilePropertiesShipTo
public BillingProfilePropertiesShipTo()
Creates an instance of BillingProfilePropertiesShipTo class.
Method Details
fromJson
public static BillingProfilePropertiesShipTo fromJson(JsonReader jsonReader)
Reads an instance of BillingProfilePropertiesShipTo from the JsonReader.
Parameters:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
BillingProfilePropertiesShipTo.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
BillingProfilePropertiesShipTo.validate()withAddressLine1
public BillingProfilePropertiesShipTo withAddressLine1(String addressLine1)
Set the addressLine1 property: Address line 1.
Overrides:
BillingProfilePropertiesShipTo.withAddressLine1(String addressLine1)Parameters:
withAddressLine2
public BillingProfilePropertiesShipTo withAddressLine2(String addressLine2)
Set the addressLine2 property: Address line 2.
Overrides:
BillingProfilePropertiesShipTo.withAddressLine2(String addressLine2)Parameters:
withAddressLine3
public BillingProfilePropertiesShipTo withAddressLine3(String addressLine3)
Set the addressLine3 property: Address line 3.
Overrides:
BillingProfilePropertiesShipTo.withAddressLine3(String addressLine3)Parameters:
withCity
public BillingProfilePropertiesShipTo withCity(String city)
Set the city property: Address city.
Overrides:
BillingProfilePropertiesShipTo.withCity(String city)Parameters:
withCompanyName
public BillingProfilePropertiesShipTo withCompanyName(String companyName)
Set the companyName property: Company name. Optional for MCA Individual (Pay-as-you-go).
Overrides:
BillingProfilePropertiesShipTo.withCompanyName(String companyName)Parameters:
withCountry
public BillingProfilePropertiesShipTo withCountry(String country)
Set the country property: Country code uses ISO 3166-1 Alpha-2 format.
Overrides:
BillingProfilePropertiesShipTo.withCountry(String country)Parameters:
withDistrict
public BillingProfilePropertiesShipTo withDistrict(String district)
Set the district property: Address district.
Overrides:
BillingProfilePropertiesShipTo.withDistrict(String district)Parameters:
withEmail
public BillingProfilePropertiesShipTo withEmail(String email)
Set the email property: Email address.
Overrides:
BillingProfilePropertiesShipTo.withEmail(String email)Parameters:
withFirstName
public BillingProfilePropertiesShipTo withFirstName(String firstName)
Set the firstName property: First name. Optional for MCA Enterprise.
Overrides:
BillingProfilePropertiesShipTo.withFirstName(String firstName)Parameters:
withIsValidAddress
public BillingProfilePropertiesShipTo withIsValidAddress(Boolean isValidAddress)
Set the isValidAddress property: Indicates if the address is incomplete.
Overrides:
BillingProfilePropertiesShipTo.withIsValidAddress(Boolean isValidAddress)Parameters:
withLastName
public BillingProfilePropertiesShipTo withLastName(String lastName)
Set the lastName property: Last name. Optional for MCA Enterprise.
Overrides:
BillingProfilePropertiesShipTo.withLastName(String lastName)Parameters:
withMiddleName
public BillingProfilePropertiesShipTo withMiddleName(String middleName)
Set the middleName property: Middle name.
Overrides:
BillingProfilePropertiesShipTo.withMiddleName(String middleName)Parameters:
withPhoneNumber
public BillingProfilePropertiesShipTo withPhoneNumber(String phoneNumber)
Set the phoneNumber property: Phone number.
Overrides:
BillingProfilePropertiesShipTo.withPhoneNumber(String phoneNumber)Parameters:
withPostalCode
public BillingProfilePropertiesShipTo withPostalCode(String postalCode)
Set the postalCode property: Postal code.
Overrides:
BillingProfilePropertiesShipTo.withPostalCode(String postalCode)Parameters:
withRegion
public BillingProfilePropertiesShipTo withRegion(String region)
Set the region property: Address region.
Overrides:
BillingProfilePropertiesShipTo.withRegion(String region)Parameters: