public static class ResourcePolicy.Builder extends Object
Modifier and Type | Method and Description |
---|---|
ResourcePolicy |
build() |
ResourcePolicy.Builder |
clone() |
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription() |
String |
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.Builder |
mergeFrom(ResourcePolicy other) |
ResourcePolicy.Builder |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
ResourcePolicy.Builder |
setDescription(String description) |
ResourcePolicy.Builder |
setId(String id)
[Output Only] The unique identifier for the resource.
|
ResourcePolicy.Builder |
setKind(String kind)
[Output Only] Type of the resource.
|
ResourcePolicy.Builder |
setName(String name)
The name of the resource, provided by the client when initially creating the resource.
|
ResourcePolicy.Builder |
setRegion(String region) |
ResourcePolicy.Builder |
setSelfLink(String selfLink)
[Output Only] Server-defined fully-qualified URL for this resource.
|
ResourcePolicy.Builder |
setSnapshotSchedulePolicy(ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy)
Resource policy for persistent disks for creating snapshots.
|
ResourcePolicy.Builder |
setStatus(String status)
[Output Only] The status of resource policy creation.
|
public ResourcePolicy.Builder mergeFrom(ResourcePolicy other)
public String getCreationTimestamp()
public ResourcePolicy.Builder setCreationTimestamp(String creationTimestamp)
public String getDescription()
public ResourcePolicy.Builder setDescription(String description)
public String getId()
public ResourcePolicy.Builder setId(String id)
public String getKind()
public ResourcePolicy.Builder setKind(String kind)
public String getName()
public ResourcePolicy.Builder setName(String name)
public String getRegion()
public ResourcePolicy.Builder setRegion(String region)
public String getSelfLink()
public ResourcePolicy.Builder setSelfLink(String selfLink)
public ResourcePolicySnapshotSchedulePolicy getSnapshotSchedulePolicy()
public ResourcePolicy.Builder setSnapshotSchedulePolicy(ResourcePolicySnapshotSchedulePolicy snapshotSchedulePolicy)
public String getStatus()
public ResourcePolicy.Builder setStatus(String status)
public ResourcePolicy build()
public ResourcePolicy.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.