target.apidocs.com.google.api.services.directory.model.Customer.html Maven / Gradle / Ivy
Customer (Admin SDK API directory_v1-rev20220606-1.32.1)
com.google.api.services.directory.model
Class Customer
- 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.Customer
-
public final class Customer
extends GenericJson
Model definition for Customer.
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
Customer()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Customer
clone()
String
getAlternateEmail()
The customer's secondary contact email address.
DateTime
getCustomerCreationTime()
The customer's creation time (Readonly)
String
getCustomerDomain()
The customer's primary domain name string.
String
getEtag()
ETag of the resource.
String
getId()
The unique ID for the customer's Google Workspace account.
String
getKind()
Identifies the resource as a customer.
String
getLanguage()
The customer's ISO 639-2 language code.
String
getPhoneNumber()
The customer's contact phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format.
CustomerPostalAddress
getPostalAddress()
The customer's postal address information.
Customer
set(String fieldName,
Object value)
Customer
setAlternateEmail(String alternateEmail)
The customer's secondary contact email address.
Customer
setCustomerCreationTime(DateTime customerCreationTime)
The customer's creation time (Readonly)
Customer
setCustomerDomain(String customerDomain)
The customer's primary domain name string.
Customer
setEtag(String etag)
ETag of the resource.
Customer
setId(String id)
The unique ID for the customer's Google Workspace account.
Customer
setKind(String kind)
Identifies the resource as a customer.
Customer
setLanguage(String language)
The customer's ISO 639-2 language code.
Customer
setPhoneNumber(String phoneNumber)
The customer's contact phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format.
Customer
setPostalAddress(CustomerPostalAddress postalAddress)
The customer's postal address information.
-
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
-
getAlternateEmail
public String getAlternateEmail()
The customer's secondary contact email address. This email address cannot be on the same domain
as the `customerDomain`
- Returns:
- value or
null
for none
-
setAlternateEmail
public Customer setAlternateEmail(String alternateEmail)
The customer's secondary contact email address. This email address cannot be on the same domain
as the `customerDomain`
- Parameters:
alternateEmail
- alternateEmail or null
for none
-
getCustomerCreationTime
public DateTime getCustomerCreationTime()
The customer's creation time (Readonly)
- Returns:
- value or
null
for none
-
setCustomerCreationTime
public Customer setCustomerCreationTime(DateTime customerCreationTime)
The customer's creation time (Readonly)
- Parameters:
customerCreationTime
- customerCreationTime or null
for none
-
getCustomerDomain
public String getCustomerDomain()
The customer's primary domain name string. Do not include the `www` prefix when creating a new
customer.
- Returns:
- value or
null
for none
-
setCustomerDomain
public Customer setCustomerDomain(String customerDomain)
The customer's primary domain name string. Do not include the `www` prefix when creating a new
customer.
- Parameters:
customerDomain
- customerDomain or null
for none
-
getEtag
public String getEtag()
ETag of the resource.
- Returns:
- value or
null
for none
-
setEtag
public Customer setEtag(String etag)
ETag of the resource.
- Parameters:
etag
- etag or null
for none
-
getId
public String getId()
The unique ID for the customer's Google Workspace account. (Readonly)
- Returns:
- value or
null
for none
-
setId
public Customer setId(String id)
The unique ID for the customer's Google Workspace account. (Readonly)
- Parameters:
id
- id or null
for none
-
getKind
public String getKind()
Identifies the resource as a customer. Value: `admin#directory#customer`
- Returns:
- value or
null
for none
-
setKind
public Customer setKind(String kind)
Identifies the resource as a customer. Value: `admin#directory#customer`
- Parameters:
kind
- kind or null
for none
-
getLanguage
public String getLanguage()
The customer's ISO 639-2 language code. See the [Language Codes](/admin-
sdk/directory/v1/languages) page for the list of supported codes. Valid language codes outside
the supported set will be accepted by the API but may lead to unexpected behavior. The default
value is `en`.
- Returns:
- value or
null
for none
-
setLanguage
public Customer setLanguage(String language)
The customer's ISO 639-2 language code. See the [Language Codes](/admin-
sdk/directory/v1/languages) page for the list of supported codes. Valid language codes outside
the supported set will be accepted by the API but may lead to unexpected behavior. The default
value is `en`.
- Parameters:
language
- language or null
for none
-
getPhoneNumber
public String getPhoneNumber()
The customer's contact phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format.
- Returns:
- value or
null
for none
-
setPhoneNumber
public Customer setPhoneNumber(String phoneNumber)
The customer's contact phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format.
- Parameters:
phoneNumber
- phoneNumber or null
for none
-
getPostalAddress
public CustomerPostalAddress getPostalAddress()
The customer's postal address information.
- Returns:
- value or
null
for none
-
setPostalAddress
public Customer setPostalAddress(CustomerPostalAddress postalAddress)
The customer's postal address information.
- Parameters:
postalAddress
- postalAddress or null
for none
-
set
public Customer set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Customer clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.