public static class Commitment.Builder extends Object
Modifier and Type | Method and Description |
---|---|
Commitment.Builder |
addAllResources(List<ResourceCommitment> resources)
A list of commitment amounts for particular resources.
|
Commitment.Builder |
addResources(ResourceCommitment resources)
A list of commitment amounts for particular resources.
|
Commitment |
build() |
Commitment.Builder |
clone() |
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
String |
getEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
|
String |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of the resource.
|
String |
getName()
Name of the resource.
|
String |
getPlan()
The plan for this commitment, which determines duration and discount rate.
|
String |
getRegion()
[Output Only] URL of the region where this commitment may be used.
|
List<ResourceCommitment> |
getResourcesList()
A list of commitment amounts for particular resources.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
String |
getStartTimestamp()
[Output Only] Commitment start time in RFC3339 text format.
|
String |
getStatus()
[Output Only] Status of the commitment with regards to eventual expiration (each commitment
has an end date defined).
|
String |
getStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
|
Commitment.Builder |
mergeFrom(Commitment other) |
Commitment.Builder |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Commitment.Builder |
setDescription(String description)
An optional description of this resource.
|
Commitment.Builder |
setEndTimestamp(String endTimestamp)
[Output Only] Commitment end time in RFC3339 text format.
|
Commitment.Builder |
setId(String id)
[Output Only] The unique identifier for the resource.
|
Commitment.Builder |
setKind(String kind)
[Output Only] Type of the resource.
|
Commitment.Builder |
setName(String name)
Name of the resource.
|
Commitment.Builder |
setPlan(String plan)
The plan for this commitment, which determines duration and discount rate.
|
Commitment.Builder |
setRegion(String region)
[Output Only] URL of the region where this commitment may be used.
|
Commitment.Builder |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
Commitment.Builder |
setStartTimestamp(String startTimestamp)
[Output Only] Commitment start time in RFC3339 text format.
|
Commitment.Builder |
setStatus(String status)
[Output Only] Status of the commitment with regards to eventual expiration (each commitment
has an end date defined).
|
Commitment.Builder |
setStatusMessage(String statusMessage)
[Output Only] An optional, human-readable explanation of the status.
|
public Commitment.Builder mergeFrom(Commitment other)
public String getCreationTimestamp()
public Commitment.Builder setCreationTimestamp(String creationTimestamp)
public String getDescription()
public Commitment.Builder setDescription(String description)
public String getEndTimestamp()
public Commitment.Builder setEndTimestamp(String endTimestamp)
public String getId()
public Commitment.Builder setId(String id)
public String getKind()
public Commitment.Builder setKind(String kind)
public String getName()
public Commitment.Builder setName(String name)
public String getPlan()
public Commitment.Builder setPlan(String plan)
public String getRegion()
public Commitment.Builder setRegion(String region)
public List<ResourceCommitment> getResourcesList()
public Commitment.Builder addAllResources(List<ResourceCommitment> resources)
public Commitment.Builder addResources(ResourceCommitment resources)
public String getSelfLink()
public Commitment.Builder setSelfLink(String selfLink)
public String getStartTimestamp()
public Commitment.Builder setStartTimestamp(String startTimestamp)
public String getStatus()
public Commitment.Builder setStatus(String status)
public String getStatusMessage()
public Commitment.Builder setStatusMessage(String statusMessage)
public Commitment build()
public Commitment.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.