![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.model.ResourcePolicySnapshotSchedulePolicy.html Maven / Gradle / Ivy
ResourcePolicySnapshotSchedulePolicy (Compute Engine API beta-rev20220312-1.32.1)
com.google.api.services.compute.model
Class ResourcePolicySnapshotSchedulePolicy
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.ResourcePolicySnapshotSchedulePolicy
-
public final class ResourcePolicySnapshotSchedulePolicy
extends GenericJson
A snapshot schedule policy specifies when and how frequently snapshots are to be created for the
target disk. Also specifies how many and how long these scheduled snapshots should be retained.
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
- 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
ResourcePolicySnapshotSchedulePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ResourcePolicySnapshotSchedulePolicy
clone()
ResourcePolicySnapshotSchedulePolicyRetentionPolicy
getRetentionPolicy()
Retention policy applied to snapshots created by this resource policy.
ResourcePolicySnapshotSchedulePolicySchedule
getSchedule()
A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to
perform on this VM and when.
ResourcePolicySnapshotSchedulePolicySnapshotProperties
getSnapshotProperties()
Properties with which snapshots are created such as labels, encryption keys.
ResourcePolicySnapshotSchedulePolicy
set(String fieldName,
Object value)
ResourcePolicySnapshotSchedulePolicy
setRetentionPolicy(ResourcePolicySnapshotSchedulePolicyRetentionPolicy retentionPolicy)
Retention policy applied to snapshots created by this resource policy.
ResourcePolicySnapshotSchedulePolicy
setSchedule(ResourcePolicySnapshotSchedulePolicySchedule schedule)
A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to
perform on this VM and when.
ResourcePolicySnapshotSchedulePolicy
setSnapshotProperties(ResourcePolicySnapshotSchedulePolicySnapshotProperties snapshotProperties)
Properties with which snapshots are created such as labels, encryption keys.
-
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
-
-
Constructor Detail
-
ResourcePolicySnapshotSchedulePolicy
public ResourcePolicySnapshotSchedulePolicy()
-
Method Detail
-
getRetentionPolicy
public ResourcePolicySnapshotSchedulePolicyRetentionPolicy getRetentionPolicy()
Retention policy applied to snapshots created by this resource policy.
- Returns:
- value or
null
for none
-
setRetentionPolicy
public ResourcePolicySnapshotSchedulePolicy setRetentionPolicy(ResourcePolicySnapshotSchedulePolicyRetentionPolicy retentionPolicy)
Retention policy applied to snapshots created by this resource policy.
- Parameters:
retentionPolicy
- retentionPolicy or null
for none
-
getSchedule
public ResourcePolicySnapshotSchedulePolicySchedule getSchedule()
A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to
perform on this VM and when. Schedule that is applied to disks covered by this policy.
- Returns:
- value or
null
for none
-
setSchedule
public ResourcePolicySnapshotSchedulePolicy setSchedule(ResourcePolicySnapshotSchedulePolicySchedule schedule)
A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to
perform on this VM and when. Schedule that is applied to disks covered by this policy.
- Parameters:
schedule
- schedule or null
for none
-
getSnapshotProperties
public ResourcePolicySnapshotSchedulePolicySnapshotProperties getSnapshotProperties()
Properties with which snapshots are created such as labels, encryption keys.
- Returns:
- value or
null
for none
-
setSnapshotProperties
public ResourcePolicySnapshotSchedulePolicy setSnapshotProperties(ResourcePolicySnapshotSchedulePolicySnapshotProperties snapshotProperties)
Properties with which snapshots are created such as labels, encryption keys.
- Parameters:
snapshotProperties
- snapshotProperties or null
for none
-
set
public ResourcePolicySnapshotSchedulePolicy set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public ResourcePolicySnapshotSchedulePolicy clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy