target.apidocs.com.google.api.services.directory.model.CustomerPostalAddress.html Maven / Gradle / Ivy
CustomerPostalAddress (Admin SDK API directory_v1-rev20220125-1.32.1)
com.google.api.services.directory.model
Class CustomerPostalAddress
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.directory.model.CustomerPostalAddress
-
public final class CustomerPostalAddress
extends GenericJson
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
CustomerPostalAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
CustomerPostalAddress
clone()
String
getAddressLine1()
A customer's physical address.
String
getAddressLine2()
Address line 2 of the address.
String
getAddressLine3()
Address line 3 of the address.
String
getContactName()
The customer contact's name.
String
getCountryCode()
This is a required property.
String
getLocality()
Name of the locality.
String
getOrganizationName()
The company or company division name.
String
getPostalCode()
The postal code.
String
getRegion()
Name of the region.
CustomerPostalAddress
set(String fieldName,
Object value)
CustomerPostalAddress
setAddressLine1(String addressLine1)
A customer's physical address.
CustomerPostalAddress
setAddressLine2(String addressLine2)
Address line 2 of the address.
CustomerPostalAddress
setAddressLine3(String addressLine3)
Address line 3 of the address.
CustomerPostalAddress
setContactName(String contactName)
The customer contact's name.
CustomerPostalAddress
setCountryCode(String countryCode)
This is a required property.
CustomerPostalAddress
setLocality(String locality)
Name of the locality.
CustomerPostalAddress
setOrganizationName(String organizationName)
The company or company division name.
CustomerPostalAddress
setPostalCode(String postalCode)
The postal code.
CustomerPostalAddress
setRegion(String region)
Name of the region.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAddressLine1
public String getAddressLine1()
A customer's physical address. The address can be composed of one to three lines.
- Returns:
- value or
null
for none
-
setAddressLine1
public CustomerPostalAddress setAddressLine1(String addressLine1)
A customer's physical address. The address can be composed of one to three lines.
- Parameters:
addressLine1
- addressLine1 or null
for none
-
getAddressLine2
public String getAddressLine2()
Address line 2 of the address.
- Returns:
- value or
null
for none
-
setAddressLine2
public CustomerPostalAddress setAddressLine2(String addressLine2)
Address line 2 of the address.
- Parameters:
addressLine2
- addressLine2 or null
for none
-
getAddressLine3
public String getAddressLine3()
Address line 3 of the address.
- Returns:
- value or
null
for none
-
setAddressLine3
public CustomerPostalAddress setAddressLine3(String addressLine3)
Address line 3 of the address.
- Parameters:
addressLine3
- addressLine3 or null
for none
-
getContactName
public String getContactName()
The customer contact's name.
- Returns:
- value or
null
for none
-
setContactName
public CustomerPostalAddress setContactName(String contactName)
The customer contact's name.
- Parameters:
contactName
- contactName or null
for none
-
getCountryCode
public String getCountryCode()
This is a required property. For `countryCode` information see the [ISO 3166 country code
elements](https://www.iso.org/iso/country_codes.htm).
- Returns:
- value or
null
for none
-
setCountryCode
public CustomerPostalAddress setCountryCode(String countryCode)
This is a required property. For `countryCode` information see the [ISO 3166 country code
elements](https://www.iso.org/iso/country_codes.htm).
- Parameters:
countryCode
- countryCode or null
for none
-
getLocality
public String getLocality()
Name of the locality. An example of a locality value is the city of `San Francisco`.
- Returns:
- value or
null
for none
-
setLocality
public CustomerPostalAddress setLocality(String locality)
Name of the locality. An example of a locality value is the city of `San Francisco`.
- Parameters:
locality
- locality or null
for none
-
getOrganizationName
public String getOrganizationName()
The company or company division name.
- Returns:
- value or
null
for none
-
setOrganizationName
public CustomerPostalAddress setOrganizationName(String organizationName)
The company or company division name.
- Parameters:
organizationName
- organizationName or null
for none
-
getPostalCode
public String getPostalCode()
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.
- Returns:
- value or
null
for none
-
setPostalCode
public CustomerPostalAddress setPostalCode(String 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.
- Parameters:
postalCode
- postalCode or null
for none
-
getRegion
public String getRegion()
Name of the region. An example of a region value is `NY` for the state of New York.
- Returns:
- value or
null
for none
-
setRegion
public CustomerPostalAddress setRegion(String region)
Name of the region. An example of a region value is `NY` for the state of New York.
- Parameters:
region
- region or null
for none
-
set
public CustomerPostalAddress set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public CustomerPostalAddress clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.