Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.appservice;
import com.fasterxml.jackson.annotation.JsonProperty;
Address information for domain registration.
/**
* Address information for domain registration.
*/
public class Address {
First line of an Address.
/**
* First line of an Address.
*/
@JsonProperty(value = "address1", required = true)
private String address1;
The second line of the Address. Optional.
/**
* The second line of the Address. Optional.
*/
@JsonProperty(value = "address2")
private String address2;
The city for the address.
/**
* The city for the address.
*/
@JsonProperty(value = "city", required = true)
private String city;
The country for the address.
/**
* The country for the address.
*/
@JsonProperty(value = "country", required = true)
private String country;
The postal code for the address.
/**
* The postal code for the address.
*/
@JsonProperty(value = "postalCode", required = true)
private String postalCode;
The state or province for the address.
/**
* The state or province for the address.
*/
@JsonProperty(value = "state", required = true)
private String state;
Get first line of an Address.
Returns: the address1 value
/**
* Get first line of an Address.
*
* @return the address1 value
*/
public String address1() {
return this.address1;
}
Set first line of an Address.
Params: - address1 – the address1 value to set
Returns: the Address object itself.
/**
* Set first line of an Address.
*
* @param address1 the address1 value to set
* @return the Address object itself.
*/
public Address withAddress1(String address1) {
this.address1 = address1;
return this;
}
Get the second line of the Address. Optional.
Returns: the address2 value
/**
* Get the second line of the Address. Optional.
*
* @return the address2 value
*/
public String address2() {
return this.address2;
}
Set the second line of the Address. Optional.
Params: - address2 – the address2 value to set
Returns: the Address object itself.
/**
* Set the second line of the Address. Optional.
*
* @param address2 the address2 value to set
* @return the Address object itself.
*/
public Address withAddress2(String address2) {
this.address2 = address2;
return this;
}
Get the city for the address.
Returns: the city value
/**
* Get the city for the address.
*
* @return the city value
*/
public String city() {
return this.city;
}
Set the city for the address.
Params: - city – the city value to set
Returns: the Address object itself.
/**
* Set the city for the address.
*
* @param city the city value to set
* @return the Address object itself.
*/
public Address withCity(String city) {
this.city = city;
return this;
}
Get the country for the address.
Returns: the country value
/**
* Get the country for the address.
*
* @return the country value
*/
public String country() {
return this.country;
}
Set the country for the address.
Params: - country – the country value to set
Returns: the Address object itself.
/**
* Set the country for the address.
*
* @param country the country value to set
* @return the Address object itself.
*/
public Address withCountry(String country) {
this.country = country;
return this;
}
Get the postal code for the address.
Returns: the postalCode value
/**
* Get the postal code for the address.
*
* @return the postalCode value
*/
public String postalCode() {
return this.postalCode;
}
Set the postal code for the address.
Params: - postalCode – the postalCode value to set
Returns: the Address object itself.
/**
* Set the postal code for the address.
*
* @param postalCode the postalCode value to set
* @return the Address object itself.
*/
public Address withPostalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
Get the state or province for the address.
Returns: the state value
/**
* Get the state or province for the address.
*
* @return the state value
*/
public String state() {
return this.state;
}
Set the state or province for the address.
Params: - state – the state value to set
Returns: the Address object itself.
/**
* Set the state or province for the address.
*
* @param state the state value to set
* @return the Address object itself.
*/
public Address withState(String state) {
this.state = state;
return this;
}
}