AddressDetails Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. AddressDetails
- com.
Implements
public class AddressDetails
implements JsonSerializable<AddressDetails>
Address details.
Constructor Summary
| Constructor | Description |
|---|---|
| AddressDetails() |
Creates an instance of Address |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
addressLine1()
Get the address |
| String |
addressLine2()
Get the address |
| String |
addressLine3()
Get the address |
| String |
city()
Get the city property: Address city. |
| String |
companyName()
Get the company |
| String |
country()
Get the country property: Country code uses ISO 3166-1 Alpha-2 format. |
| String |
district()
Get the district property: Address district. |
| String |
email()
Get the email property: Email address. |
| String |
firstName()
Get the first |
|
static
Address |
fromJson(JsonReader jsonReader)
Reads an instance of Address |
| Boolean |
isValidAddress()
Get the is |
| String |
lastName()
Get the last |
| String |
middleName()
Get the middle |
| String |
phoneNumber()
Get the phone |
| String |
postalCode()
Get the postal |
| String |
region()
Get the region property: Address region. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Address |
withAddressLine1(String addressLine1)
Set the address |
|
Address |
withAddressLine2(String addressLine2)
Set the address |
|
Address |
withAddressLine3(String addressLine3)
Set the address |
|
Address |
withCity(String city)
Set the city property: Address city. |
|
Address |
withCompanyName(String companyName)
Set the company |
|
Address |
withCountry(String country)
Set the country property: Country code uses ISO 3166-1 Alpha-2 format. |
|
Address |
withDistrict(String district)
Set the district property: Address district. |
|
Address |
withEmail(String email)
Set the email property: Email address. |
|
Address |
withFirstName(String firstName)
Set the first |
|
Address |
withIsValidAddress(Boolean isValidAddress)
Set the is |
|
Address |
withLastName(String lastName)
Set the last |
|
Address |
withMiddleName(String middleName)
Set the middle |
|
Address |
withPhoneNumber(String phoneNumber)
Set the phone |
|
Address |
withPostalCode(String postalCode)
Set the postal |
|
Address |
withRegion(String region)
Set the region property: Address region. |
Methods inherited from java.lang.Object
Constructor Details
AddressDetails
public AddressDetails()
Creates an instance of AddressDetails class.
Method Details
addressLine1
public String addressLine1()
Get the addressLine1 property: Address line 1.
Returns:
addressLine2
public String addressLine2()
Get the addressLine2 property: Address line 2.
Returns:
addressLine3
public String addressLine3()
Get the addressLine3 property: Address line 3.
Returns:
city
public String city()
Get the city property: Address city.
Returns:
companyName
public String companyName()
Get the companyName property: Company name. Optional for MCA Individual (Pay-as-you-go).
Returns:
country
public String country()
Get the country property: Country code uses ISO 3166-1 Alpha-2 format.
Returns:
district
public String district()
Get the district property: Address district.
Returns:
public String email()
Get the email property: Email address.
Returns:
firstName
public String firstName()
Get the firstName property: First name. Optional for MCA Enterprise.
Returns:
fromJson
public static AddressDetails fromJson(JsonReader jsonReader)
Reads an instance of AddressDetails from the JsonReader.
Parameters:
Returns:
Throws:
isValidAddress
public Boolean isValidAddress()
Get the isValidAddress property: Indicates if the address is incomplete.
Returns:
lastName
public String lastName()
Get the lastName property: Last name. Optional for MCA Enterprise.
Returns:
middleName
public String middleName()
Get the middleName property: Middle name.
Returns:
phoneNumber
public String phoneNumber()
Get the phoneNumber property: Phone number.
Returns:
postalCode
public String postalCode()
Get the postalCode property: Postal code.
Returns:
region
public String region()
Get the region property: Address region.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAddressLine1
public AddressDetails withAddressLine1(String addressLine1)
Set the addressLine1 property: Address line 1.
Parameters:
Returns:
withAddressLine2
public AddressDetails withAddressLine2(String addressLine2)
Set the addressLine2 property: Address line 2.
Parameters:
Returns:
withAddressLine3
public AddressDetails withAddressLine3(String addressLine3)
Set the addressLine3 property: Address line 3.
Parameters:
Returns:
withCity
public AddressDetails withCity(String city)
Set the city property: Address city.
Parameters:
Returns:
withCompanyName
public AddressDetails withCompanyName(String companyName)
Set the companyName property: Company name. Optional for MCA Individual (Pay-as-you-go).
Parameters:
Returns:
withCountry
public AddressDetails withCountry(String country)
Set the country property: Country code uses ISO 3166-1 Alpha-2 format.
Parameters:
Returns:
withDistrict
public AddressDetails withDistrict(String district)
Set the district property: Address district.
Parameters:
Returns:
withEmail
public AddressDetails withEmail(String email)
Set the email property: Email address.
Parameters:
Returns:
withFirstName
public AddressDetails withFirstName(String firstName)
Set the firstName property: First name. Optional for MCA Enterprise.
Parameters:
Returns:
withIsValidAddress
public AddressDetails withIsValidAddress(Boolean isValidAddress)
Set the isValidAddress property: Indicates if the address is incomplete.
Parameters:
Returns:
withLastName
public AddressDetails withLastName(String lastName)
Set the lastName property: Last name. Optional for MCA Enterprise.
Parameters:
Returns:
withMiddleName
public AddressDetails withMiddleName(String middleName)
Set the middleName property: Middle name.
Parameters:
Returns:
withPhoneNumber
public AddressDetails withPhoneNumber(String phoneNumber)
Set the phoneNumber property: Phone number.
Parameters:
Returns:
withPostalCode
public AddressDetails withPostalCode(String postalCode)
Set the postalCode property: Postal code.
Parameters:
Returns:
withRegion
public AddressDetails withRegion(String region)
Set the region property: Address region.
Parameters:
Returns: