BillingPropertyPropertiesSubscriptionServiceUsageAddress Class

public final class BillingPropertyPropertiesSubscriptionServiceUsageAddress
extends AddressDetails

The address of the individual or organization where service subscription is being used. Available for agreement type Microsoft Online Services Program. This property can be updated via patch.

Constructor Summary

Constructor Description
BillingPropertyPropertiesSubscriptionServiceUsageAddress()

Creates an instance of BillingPropertyPropertiesSubscriptionServiceUsageAddress class.

Method Summary

Modifier and Type Method and Description
static BillingPropertyPropertiesSubscriptionServiceUsageAddress fromJson(JsonReader jsonReader)

Reads an instance of BillingPropertyPropertiesSubscriptionServiceUsageAddress from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BillingPropertyPropertiesSubscriptionServiceUsageAddress withAddressLine1(String addressLine1)

Set the addressLine1 property: Address line 1.

BillingPropertyPropertiesSubscriptionServiceUsageAddress withAddressLine2(String addressLine2)

Set the addressLine2 property: Address line 2.

BillingPropertyPropertiesSubscriptionServiceUsageAddress withAddressLine3(String addressLine3)

Set the addressLine3 property: Address line 3.

BillingPropertyPropertiesSubscriptionServiceUsageAddress withCity(String city)

Set the city property: Address city.

BillingPropertyPropertiesSubscriptionServiceUsageAddress withCompanyName(String companyName)

Set the companyName property: Company name.

BillingPropertyPropertiesSubscriptionServiceUsageAddress withCountry(String country)

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

BillingPropertyPropertiesSubscriptionServiceUsageAddress withDistrict(String district)

Set the district property: Address district.

BillingPropertyPropertiesSubscriptionServiceUsageAddress withEmail(String email)

Set the email property: Email address.

BillingPropertyPropertiesSubscriptionServiceUsageAddress withFirstName(String firstName)

Set the firstName property: First name.

BillingPropertyPropertiesSubscriptionServiceUsageAddress withIsValidAddress(Boolean isValidAddress)

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

BillingPropertyPropertiesSubscriptionServiceUsageAddress withLastName(String lastName)

Set the lastName property: Last name.

BillingPropertyPropertiesSubscriptionServiceUsageAddress withMiddleName(String middleName)

Set the middleName property: Middle name.

BillingPropertyPropertiesSubscriptionServiceUsageAddress withPhoneNumber(String phoneNumber)

Set the phoneNumber property: Phone number.

BillingPropertyPropertiesSubscriptionServiceUsageAddress withPostalCode(String postalCode)

Set the postalCode property: Postal code.

BillingPropertyPropertiesSubscriptionServiceUsageAddress withRegion(String region)

Set the region property: Address region.

Methods inherited from AddressDetails

Methods inherited from java.lang.Object

Constructor Details

BillingPropertyPropertiesSubscriptionServiceUsageAddress

public BillingPropertyPropertiesSubscriptionServiceUsageAddress()

Creates an instance of BillingPropertyPropertiesSubscriptionServiceUsageAddress class.

Method Details

fromJson

public static BillingPropertyPropertiesSubscriptionServiceUsageAddress fromJson(JsonReader jsonReader)

Reads an instance of BillingPropertyPropertiesSubscriptionServiceUsageAddress from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BillingPropertyPropertiesSubscriptionServiceUsageAddress 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.validate()

withAddressLine1

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withAddressLine1(String addressLine1)

Set the addressLine1 property: Address line 1.

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withAddressLine1(String addressLine1)

Parameters:

addressLine1

withAddressLine2

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withAddressLine2(String addressLine2)

Set the addressLine2 property: Address line 2.

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withAddressLine2(String addressLine2)

Parameters:

addressLine2

withAddressLine3

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withAddressLine3(String addressLine3)

Set the addressLine3 property: Address line 3.

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withAddressLine3(String addressLine3)

Parameters:

addressLine3

withCity

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withCity(String city)

Set the city property: Address city.

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withCity(String city)

Parameters:

city

withCompanyName

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withCompanyName(String companyName)

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

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withCompanyName(String companyName)

Parameters:

companyName

withCountry

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withCountry(String country)

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

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withCountry(String country)

Parameters:

country

withDistrict

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withDistrict(String district)

Set the district property: Address district.

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withDistrict(String district)

Parameters:

district

withEmail

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withEmail(String email)

Set the email property: Email address.

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withEmail(String email)

Parameters:

email

withFirstName

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withFirstName(String firstName)

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

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withFirstName(String firstName)

Parameters:

firstName

withIsValidAddress

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withIsValidAddress(Boolean isValidAddress)

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

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withIsValidAddress(Boolean isValidAddress)

Parameters:

isValidAddress

withLastName

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withLastName(String lastName)

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

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withLastName(String lastName)

Parameters:

lastName

withMiddleName

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withMiddleName(String middleName)

Set the middleName property: Middle name.

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withMiddleName(String middleName)

Parameters:

middleName

withPhoneNumber

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withPhoneNumber(String phoneNumber)

Set the phoneNumber property: Phone number.

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withPhoneNumber(String phoneNumber)

Parameters:

phoneNumber

withPostalCode

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withPostalCode(String postalCode)

Set the postalCode property: Postal code.

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withPostalCode(String postalCode)

Parameters:

postalCode

withRegion

public BillingPropertyPropertiesSubscriptionServiceUsageAddress withRegion(String region)

Set the region property: Address region.

Overrides:

BillingPropertyPropertiesSubscriptionServiceUsageAddress.withRegion(String region)

Parameters:

region

Applies to