public final class Resource
extends com.google.api.client.json.GenericJson
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 Control API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
clone() |
Map<String,String> |
getAnnotations()
Annotations is an unstructured key-value map stored with a resource that may be set by external
tools to store and retrieve arbitrary metadata.
|
String |
getCreateTime()
Output only.
|
String |
getDeleteTime()
Output only.
|
String |
getDisplayName()
Mutable.
|
String |
getEtag()
Output only.
|
Map<String,String> |
getLabels()
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
|
String |
getLocation()
Immutable.
|
String |
getName()
The stable identifier (name) of a resource on the `service`.
|
String |
getService()
The name of the service that this resource belongs to, such as `pubsub.googleapis.com`.
|
String |
getType()
The type of the resource.
|
String |
getUid()
The unique identifier of the resource.
|
String |
getUpdateTime()
Output only.
|
Resource |
set(String fieldName,
Object value) |
Resource |
setAnnotations(Map<String,String> annotations)
Annotations is an unstructured key-value map stored with a resource that may be set by external
tools to store and retrieve arbitrary metadata.
|
Resource |
setCreateTime(String createTime)
Output only.
|
Resource |
setDeleteTime(String deleteTime)
Output only.
|
Resource |
setDisplayName(String displayName)
Mutable.
|
Resource |
setEtag(String etag)
Output only.
|
Resource |
setLabels(Map<String,String> labels)
The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels.
|
Resource |
setLocation(String location)
Immutable.
|
Resource |
setName(String name)
The stable identifier (name) of a resource on the `service`.
|
Resource |
setService(String service)
The name of the service that this resource belongs to, such as `pubsub.googleapis.com`.
|
Resource |
setType(String type)
The type of the resource.
|
Resource |
setUid(String uid)
The unique identifier of the resource.
|
Resource |
setUpdateTime(String updateTime)
Output only.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Map<String,String> getAnnotations()
null
for nonepublic Resource setAnnotations(Map<String,String> annotations)
annotations
- annotations or null
for nonepublic String getCreateTime()
null
for nonepublic Resource setCreateTime(String createTime)
createTime
- createTime or null
for nonepublic String getDeleteTime()
null
for nonepublic Resource setDeleteTime(String deleteTime)
deleteTime
- deleteTime or null
for nonepublic String getDisplayName()
null
for nonepublic Resource setDisplayName(String displayName)
displayName
- displayName or null
for nonepublic String getEtag()
null
for nonepublic Resource setEtag(String etag)
etag
- etag or null
for nonepublic Map<String,String> getLabels()
null
for nonepublic Resource setLabels(Map<String,String> labels)
labels
- labels or null
for nonepublic String getLocation()
null
for nonepublic Resource setLocation(String location)
location
- location or null
for nonepublic String getName()
null
for nonepublic Resource setName(String name)
name
- name or null
for nonepublic String getService()
null
for nonepublic Resource setService(String service)
service
- service or null
for nonepublic String getType()
null
for nonepublic Resource setType(String type)
type
- type or null
for nonepublic String getUid()
null
for nonepublic Resource setUid(String uid)
uid
- uid or null
for nonepublic String getUpdateTime()
null
for nonepublic Resource setUpdateTime(String updateTime)
updateTime
- updateTime or null
for nonepublic Resource set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Resource clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.