public final class ResourcePolicy extends 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 Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ResourcePolicy() |
| Modifier and Type | Method and Description |
|---|---|
ResourcePolicy |
clone() |
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription() |
BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of the resource.
|
String |
getName()
The name of the resource, provided by the client when initially creating the resource.
|
String |
getRegion() |
String |
getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
|
ResourcePolicySnapshotSchedulePolicy |
getSnapshotSchedulePolicy()
Resource policy for persistent disks for creating snapshots.
|
String |
getStatus()
[Output Only] The status of resource policy creation.
|
ResourcePolicy |
set(String fieldName,
Object value) |
ResourcePolicy |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
ResourcePolicy |
setDescription(String description) |
ResourcePolicy |
setId(BigInteger id)
[Output Only] The unique identifier for the resource.
|
ResourcePolicy |
setKind(String kind)
[Output Only] Type of the resource.
|
ResourcePolicy |
setName(String name)
The name of the resource, provided by the client when initially creating the resource.
|
ResourcePolicy |
setRegion(String region) |
ResourcePolicy |
setSelfLink(String selfLink)
[Output Only] Server-defined fully-qualified URL for this resource.
|
ResourcePolicy |
setSnapshotSchedulePolicy(ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy)
Resource policy for persistent disks for creating snapshots.
|
ResourcePolicy |
setStatus(String status)
[Output Only] The status of resource policy creation.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getCreationTimestamp()
null for nonepublic ResourcePolicy setCreationTimestamp(String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic String getDescription()
null for nonepublic ResourcePolicy setDescription(String description)
description - description or null for nonepublic BigInteger getId()
null for nonepublic ResourcePolicy setId(BigInteger id)
id - id or null for nonepublic String getKind()
null for nonepublic ResourcePolicy setKind(String kind)
kind - kind or null for nonepublic String getName()
null for nonepublic ResourcePolicy setName(String name)
name - name or null for nonepublic String getRegion()
null for nonepublic ResourcePolicy setRegion(String region)
region - region or null for nonepublic String getSelfLink()
null for nonepublic ResourcePolicy setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic ResourcePolicySnapshotSchedulePolicy getSnapshotSchedulePolicy()
null for nonepublic ResourcePolicy setSnapshotSchedulePolicy(ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy)
snapshotSchedulePolicy - snapshotSchedulePolicy or null for nonepublic String getStatus()
null for nonepublic ResourcePolicy setStatus(String status)
status - status or null for nonepublic ResourcePolicy set(String fieldName, Object value)
set in class GenericJsonpublic ResourcePolicy clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.