com.google.api.services.directory.model.CustomerPostalAddress Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.directory.model;
/**
* Model definition for CustomerPostalAddress.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Admin SDK API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class CustomerPostalAddress extends com.google.api.client.json.GenericJson {
/**
* A customer's physical address. The address can be composed of one to three lines.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String addressLine1;
/**
* Address line 2 of the address.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String addressLine2;
/**
* Address line 3 of the address.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String addressLine3;
/**
* The customer contact's name.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String contactName;
/**
* This is a required property. For `countryCode` information see the [ISO 3166 country code
* elements](https://www.iso.org/iso/country_codes.htm).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String countryCode;
/**
* Name of the locality. An example of a locality value is the city of `San Francisco`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String locality;
/**
* The company or company division name.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String organizationName;
/**
* The postal code. A postalCode example is a postal zip code such as `10009`. This is in
* accordance with - http: //portablecontacts.net/draft-spec.html#address_element.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String postalCode;
/**
* Name of the region. An example of a region value is `NY` for the state of New York.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String region;
/**
* A customer's physical address. The address can be composed of one to three lines.
* @return value or {@code null} for none
*/
public java.lang.String getAddressLine1() {
return addressLine1;
}
/**
* A customer's physical address. The address can be composed of one to three lines.
* @param addressLine1 addressLine1 or {@code null} for none
*/
public CustomerPostalAddress setAddressLine1(java.lang.String addressLine1) {
this.addressLine1 = addressLine1;
return this;
}
/**
* Address line 2 of the address.
* @return value or {@code null} for none
*/
public java.lang.String getAddressLine2() {
return addressLine2;
}
/**
* Address line 2 of the address.
* @param addressLine2 addressLine2 or {@code null} for none
*/
public CustomerPostalAddress setAddressLine2(java.lang.String addressLine2) {
this.addressLine2 = addressLine2;
return this;
}
/**
* Address line 3 of the address.
* @return value or {@code null} for none
*/
public java.lang.String getAddressLine3() {
return addressLine3;
}
/**
* Address line 3 of the address.
* @param addressLine3 addressLine3 or {@code null} for none
*/
public CustomerPostalAddress setAddressLine3(java.lang.String addressLine3) {
this.addressLine3 = addressLine3;
return this;
}
/**
* The customer contact's name.
* @return value or {@code null} for none
*/
public java.lang.String getContactName() {
return contactName;
}
/**
* The customer contact's name.
* @param contactName contactName or {@code null} for none
*/
public CustomerPostalAddress setContactName(java.lang.String contactName) {
this.contactName = contactName;
return this;
}
/**
* This is a required property. For `countryCode` information see the [ISO 3166 country code
* elements](https://www.iso.org/iso/country_codes.htm).
* @return value or {@code null} for none
*/
public java.lang.String getCountryCode() {
return countryCode;
}
/**
* This is a required property. For `countryCode` information see the [ISO 3166 country code
* elements](https://www.iso.org/iso/country_codes.htm).
* @param countryCode countryCode or {@code null} for none
*/
public CustomerPostalAddress setCountryCode(java.lang.String countryCode) {
this.countryCode = countryCode;
return this;
}
/**
* Name of the locality. An example of a locality value is the city of `San Francisco`.
* @return value or {@code null} for none
*/
public java.lang.String getLocality() {
return locality;
}
/**
* Name of the locality. An example of a locality value is the city of `San Francisco`.
* @param locality locality or {@code null} for none
*/
public CustomerPostalAddress setLocality(java.lang.String locality) {
this.locality = locality;
return this;
}
/**
* The company or company division name.
* @return value or {@code null} for none
*/
public java.lang.String getOrganizationName() {
return organizationName;
}
/**
* The company or company division name.
* @param organizationName organizationName or {@code null} for none
*/
public CustomerPostalAddress setOrganizationName(java.lang.String organizationName) {
this.organizationName = organizationName;
return this;
}
/**
* The postal code. A postalCode example is a postal zip code such as `10009`. This is in
* accordance with - http: //portablecontacts.net/draft-spec.html#address_element.
* @return value or {@code null} for none
*/
public java.lang.String getPostalCode() {
return postalCode;
}
/**
* The postal code. A postalCode example is a postal zip code such as `10009`. This is in
* accordance with - http: //portablecontacts.net/draft-spec.html#address_element.
* @param postalCode postalCode or {@code null} for none
*/
public CustomerPostalAddress setPostalCode(java.lang.String postalCode) {
this.postalCode = postalCode;
return this;
}
/**
* Name of the region. An example of a region value is `NY` for the state of New York.
* @return value or {@code null} for none
*/
public java.lang.String getRegion() {
return region;
}
/**
* Name of the region. An example of a region value is `NY` for the state of New York.
* @param region region or {@code null} for none
*/
public CustomerPostalAddress setRegion(java.lang.String region) {
this.region = region;
return this;
}
@Override
public CustomerPostalAddress set(String fieldName, Object value) {
return (CustomerPostalAddress) super.set(fieldName, value);
}
@Override
public CustomerPostalAddress clone() {
return (CustomerPostalAddress) super.clone();
}
}