AddressDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.AddressDetails

Implements

public class AddressDetails
implements JsonSerializable<AddressDetails>

Address details.

Constructor Summary

Constructor Description
AddressDetails()

Creates an instance of AddressDetails class.

Method Summary

Modifier and Type Method and Description
String addressLine1()

Get the addressLine1 property: Address line 1.

String addressLine2()

Get the addressLine2 property: Address line 2.

String addressLine3()

Get the addressLine3 property: Address line 3.

String city()

Get the city property: Address city.

String companyName()

Get the companyName property: Company name.

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 firstName property: First name.

static AddressDetails fromJson(JsonReader jsonReader)

Reads an instance of AddressDetails from the JsonReader.

Boolean isValidAddress()

Get the isValidAddress property: Indicates if the address is incomplete.

String lastName()

Get the lastName property: Last name.

String middleName()

Get the middleName property: Middle name.

String phoneNumber()

Get the phoneNumber property: Phone number.

String postalCode()

Get the postalCode property: Postal code.

String region()

Get the region property: Address region.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AddressDetails withAddressLine1(String addressLine1)

Set the addressLine1 property: Address line 1.

AddressDetails withAddressLine2(String addressLine2)

Set the addressLine2 property: Address line 2.

AddressDetails withAddressLine3(String addressLine3)

Set the addressLine3 property: Address line 3.

AddressDetails withCity(String city)

Set the city property: Address city.

AddressDetails withCompanyName(String companyName)

Set the companyName property: Company name.

AddressDetails withCountry(String country)

Set the country property: Country code uses ISO 3166-1 Alpha-2 format.

AddressDetails withDistrict(String district)

Set the district property: Address district.

AddressDetails withEmail(String email)

Set the email property: Email address.

AddressDetails withFirstName(String firstName)

Set the firstName property: First name.

AddressDetails withIsValidAddress(Boolean isValidAddress)

Set the isValidAddress property: Indicates if the address is incomplete.

AddressDetails withLastName(String lastName)

Set the lastName property: Last name.

AddressDetails withMiddleName(String middleName)

Set the middleName property: Middle name.

AddressDetails withPhoneNumber(String phoneNumber)

Set the phoneNumber property: Phone number.

AddressDetails withPostalCode(String postalCode)

Set the postalCode property: Postal code.

AddressDetails 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:

the addressLine1 value.

addressLine2

public String addressLine2()

Get the addressLine2 property: Address line 2.

Returns:

the addressLine2 value.

addressLine3

public String addressLine3()

Get the addressLine3 property: Address line 3.

Returns:

the addressLine3 value.

city

public String city()

Get the city property: Address city.

Returns:

the city value.

companyName

public String companyName()

Get the companyName property: Company name. Optional for MCA Individual (Pay-as-you-go).

Returns:

the companyName value.

country

public String country()

Get the country property: Country code uses ISO 3166-1 Alpha-2 format.

Returns:

the country value.

district

public String district()

Get the district property: Address district.

Returns:

the district value.

email

public String email()

Get the email property: Email address.

Returns:

the email value.

firstName

public String firstName()

Get the firstName property: First name. Optional for MCA Enterprise.

Returns:

the firstName value.

fromJson

public static AddressDetails fromJson(JsonReader jsonReader)

Reads an instance of AddressDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AddressDetails if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

isValidAddress

public Boolean isValidAddress()

Get the isValidAddress property: Indicates if the address is incomplete.

Returns:

the isValidAddress value.

lastName

public String lastName()

Get the lastName property: Last name. Optional for MCA Enterprise.

Returns:

the lastName value.

middleName

public String middleName()

Get the middleName property: Middle name.

Returns:

the middleName value.

phoneNumber

public String phoneNumber()

Get the phoneNumber property: Phone number.

Returns:

the phoneNumber value.

postalCode

public String postalCode()

Get the postalCode property: Postal code.

Returns:

the postalCode value.

region

public String region()

Get the region property: Address region.

Returns:

the region value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAddressLine1

public AddressDetails withAddressLine1(String addressLine1)

Set the addressLine1 property: Address line 1.

Parameters:

addressLine1 - the addressLine1 value to set.

Returns:

the AddressDetails object itself.

withAddressLine2

public AddressDetails withAddressLine2(String addressLine2)

Set the addressLine2 property: Address line 2.

Parameters:

addressLine2 - the addressLine2 value to set.

Returns:

the AddressDetails object itself.

withAddressLine3

public AddressDetails withAddressLine3(String addressLine3)

Set the addressLine3 property: Address line 3.

Parameters:

addressLine3 - the addressLine3 value to set.

Returns:

the AddressDetails object itself.

withCity

public AddressDetails withCity(String city)

Set the city property: Address city.

Parameters:

city - the city value to set.

Returns:

the AddressDetails object itself.

withCompanyName

public AddressDetails withCompanyName(String companyName)

Set the companyName property: Company name. Optional for MCA Individual (Pay-as-you-go).

Parameters:

companyName - the companyName value to set.

Returns:

the AddressDetails object itself.

withCountry

public AddressDetails withCountry(String country)

Set the country property: Country code uses ISO 3166-1 Alpha-2 format.

Parameters:

country - the country value to set.

Returns:

the AddressDetails object itself.

withDistrict

public AddressDetails withDistrict(String district)

Set the district property: Address district.

Parameters:

district - the district value to set.

Returns:

the AddressDetails object itself.

withEmail

public AddressDetails withEmail(String email)

Set the email property: Email address.

Parameters:

email - the email value to set.

Returns:

the AddressDetails object itself.

withFirstName

public AddressDetails withFirstName(String firstName)

Set the firstName property: First name. Optional for MCA Enterprise.

Parameters:

firstName - the firstName value to set.

Returns:

the AddressDetails object itself.

withIsValidAddress

public AddressDetails withIsValidAddress(Boolean isValidAddress)

Set the isValidAddress property: Indicates if the address is incomplete.

Parameters:

isValidAddress - the isValidAddress value to set.

Returns:

the AddressDetails object itself.

withLastName

public AddressDetails withLastName(String lastName)

Set the lastName property: Last name. Optional for MCA Enterprise.

Parameters:

lastName - the lastName value to set.

Returns:

the AddressDetails object itself.

withMiddleName

public AddressDetails withMiddleName(String middleName)

Set the middleName property: Middle name.

Parameters:

middleName - the middleName value to set.

Returns:

the AddressDetails object itself.

withPhoneNumber

public AddressDetails withPhoneNumber(String phoneNumber)

Set the phoneNumber property: Phone number.

Parameters:

phoneNumber - the phoneNumber value to set.

Returns:

the AddressDetails object itself.

withPostalCode

public AddressDetails withPostalCode(String postalCode)

Set the postalCode property: Postal code.

Parameters:

postalCode - the postalCode value to set.

Returns:

the AddressDetails object itself.

withRegion

public AddressDetails withRegion(String region)

Set the region property: Address region.

Parameters:

region - the region value to set.

Returns:

the AddressDetails object itself.

Applies to