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()  | 
ResourcePolicyGroupPlacementPolicy | 
getGroupPlacementPolicy()
Resource policy for instances for placement configuration. 
 | 
BigInteger | 
getId()
[Output Only] The unique identifier for the resource. 
 | 
ResourcePolicyInstanceSchedulePolicy | 
getInstanceSchedulePolicy()
Resource policy for scheduling instance operations. 
 | 
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. 
 | 
String | 
getSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id. 
 | 
ResourcePolicySnapshotSchedulePolicy | 
getSnapshotSchedulePolicy()
Resource policy for persistent disks for creating snapshots. 
 | 
String | 
getStatus()
[Output Only] The status of resource policy creation. 
 | 
ResourcePolicyVmMaintenancePolicy | 
getVmMaintenancePolicy()
Resource policy applicable to VMs for infrastructure maintenance. 
 | 
ResourcePolicy | 
set(String fieldName,
   Object value)  | 
ResourcePolicy | 
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format. 
 | 
ResourcePolicy | 
setDescription(String description)  | 
ResourcePolicy | 
setGroupPlacementPolicy(ResourcePolicyGroupPlacementPolicy groupPlacementPolicy)
Resource policy for instances for placement configuration. 
 | 
ResourcePolicy | 
setId(BigInteger id)
[Output Only] The unique identifier for the resource. 
 | 
ResourcePolicy | 
setInstanceSchedulePolicy(ResourcePolicyInstanceSchedulePolicy instanceSchedulePolicy)
Resource policy for scheduling instance operations. 
 | 
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 | 
setSelfLinkWithId(String selfLinkWithId)
[Output Only] Server-defined URL for this resource with the resource id. 
 | 
ResourcePolicy | 
setSnapshotSchedulePolicy(ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy)
Resource policy for persistent disks for creating snapshots. 
 | 
ResourcePolicy | 
setStatus(String status)
[Output Only] The status of resource policy creation. 
 | 
ResourcePolicy | 
setVmMaintenancePolicy(ResourcePolicyVmMaintenancePolicy vmMaintenancePolicy)
Resource policy applicable to VMs for infrastructure maintenance. 
 | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, 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 ResourcePolicyGroupPlacementPolicy getGroupPlacementPolicy()
null for nonepublic ResourcePolicy setGroupPlacementPolicy(ResourcePolicyGroupPlacementPolicy groupPlacementPolicy)
groupPlacementPolicy - groupPlacementPolicy or null for nonepublic BigInteger getId()
null for nonepublic ResourcePolicy setId(BigInteger id)
id - id or null for nonepublic ResourcePolicyInstanceSchedulePolicy getInstanceSchedulePolicy()
null for nonepublic ResourcePolicy setInstanceSchedulePolicy(ResourcePolicyInstanceSchedulePolicy instanceSchedulePolicy)
instanceSchedulePolicy - instanceSchedulePolicy 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 String getSelfLinkWithId()
null for nonepublic ResourcePolicy setSelfLinkWithId(String selfLinkWithId)
selfLinkWithId - selfLinkWithId 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 ResourcePolicyVmMaintenancePolicy getVmMaintenancePolicy()
null for nonepublic ResourcePolicy setVmMaintenancePolicy(ResourcePolicyVmMaintenancePolicy vmMaintenancePolicy)
vmMaintenancePolicy - vmMaintenancePolicy or null for nonepublic ResourcePolicy set(String fieldName, Object value)
set in class GenericJsonpublic ResourcePolicy clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.