target.apidocs.com.google.api.services.serviceconsumermanagement.v1.model.TenancyUnit.html Maven / Gradle / Ivy
TenancyUnit (Service Consumer Management API v1-rev20210525-1.31.0)
com.google.api.services.serviceconsumermanagement.v1.model
Class TenancyUnit
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.serviceconsumermanagement.v1.model.TenancyUnit
-
public final class TenancyUnit
extends GenericJson
Representation of a tenancy unit.
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 Service Consumer Management 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
TenancyUnit()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
TenancyUnit
clone()
String
getConsumer()
Output only.
String
getCreateTime()
Output only.
String
getName()
Globally unique identifier of this tenancy unit "services/{service}/{collection id}/{resource
id}/tenancyUnits/{unit}"
String
getService()
Output only.
List<TenantResource>
getTenantResources()
Resources constituting the tenancy unit.
TenancyUnit
set(String fieldName,
Object value)
TenancyUnit
setConsumer(String consumer)
Output only.
TenancyUnit
setCreateTime(String createTime)
Output only.
TenancyUnit
setName(String name)
Globally unique identifier of this tenancy unit "services/{service}/{collection id}/{resource
id}/tenancyUnits/{unit}"
TenancyUnit
setService(String service)
Output only.
TenancyUnit
setTenantResources(List<TenantResource> tenantResources)
Resources constituting the tenancy unit.
-
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
-
getConsumer
public String getConsumer()
Output only. @OutputOnly Cloud resource name of the consumer of this service. For example
'projects/123456'.
- Returns:
- value or
null
for none
-
setConsumer
public TenancyUnit setConsumer(String consumer)
Output only. @OutputOnly Cloud resource name of the consumer of this service. For example
'projects/123456'.
- Parameters:
consumer
- consumer or null
for none
-
getCreateTime
public String getCreateTime()
Output only. @OutputOnly The time this tenancy unit was created.
- Returns:
- value or
null
for none
-
setCreateTime
public TenancyUnit setCreateTime(String createTime)
Output only. @OutputOnly The time this tenancy unit was created.
- Parameters:
createTime
- createTime or null
for none
-
getName
public String getName()
Globally unique identifier of this tenancy unit "services/{service}/{collection id}/{resource
id}/tenancyUnits/{unit}"
- Returns:
- value or
null
for none
-
setName
public TenancyUnit setName(String name)
Globally unique identifier of this tenancy unit "services/{service}/{collection id}/{resource
id}/tenancyUnits/{unit}"
- Parameters:
name
- name or null
for none
-
getService
public String getService()
Output only. Google Cloud API name of the managed service owning this tenancy unit. For example
'serviceconsumermanagement.googleapis.com'.
- Returns:
- value or
null
for none
-
setService
public TenancyUnit setService(String service)
Output only. Google Cloud API name of the managed service owning this tenancy unit. For example
'serviceconsumermanagement.googleapis.com'.
- Parameters:
service
- service or null
for none
-
getTenantResources
public List<TenantResource> getTenantResources()
Resources constituting the tenancy unit. There can be at most 512 tenant resources in a tenancy
unit.
- Returns:
- value or
null
for none
-
setTenantResources
public TenancyUnit setTenantResources(List<TenantResource> tenantResources)
Resources constituting the tenancy unit. There can be at most 512 tenant resources in a tenancy
unit.
- Parameters:
tenantResources
- tenantResources or null
for none
-
set
public TenancyUnit set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public TenancyUnit clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.