public static class InsertRegionCommitmentHttpRequest.Builder extends Object
Modifier and Type | Method and Description |
---|---|
InsertRegionCommitmentHttpRequest |
build() |
InsertRegionCommitmentHttpRequest.Builder |
clone() |
String |
getAccessToken()
OAuth 2.0 token for the current user.
|
String |
getCallback()
Name of the JavaScript callback function that handles the response.
|
Commitment |
getCommitmentResource()
Represents a regional Commitment resource.
|
String |
getFields()
Selector specifying a subset of fields to include in the response.
|
String |
getKey()
API key.
|
String |
getPrettyPrint()
Returns response with indentations and line breaks.
|
String |
getQuotaUser()
Alternative to userIp.
|
String |
getRegion()
Name of the region for this request.
|
String |
getRequestId()
An optional request ID to identify requests.
|
String |
getUserIp()
IP address of the end user for whom the API call is being made.
|
InsertRegionCommitmentHttpRequest.Builder |
mergeFrom(InsertRegionCommitmentHttpRequest other) |
InsertRegionCommitmentHttpRequest.Builder |
setAccessToken(String access_token)
OAuth 2.0 token for the current user.
|
InsertRegionCommitmentHttpRequest.Builder |
setCallback(String callback)
Name of the JavaScript callback function that handles the response.
|
InsertRegionCommitmentHttpRequest.Builder |
setCommitmentResource(Commitment commitmentResource)
Represents a regional Commitment resource.
|
InsertRegionCommitmentHttpRequest.Builder |
setFields(String fields)
Selector specifying a subset of fields to include in the response.
|
InsertRegionCommitmentHttpRequest.Builder |
setKey(String key)
API key.
|
InsertRegionCommitmentHttpRequest.Builder |
setPrettyPrint(String prettyPrint)
Returns response with indentations and line breaks.
|
InsertRegionCommitmentHttpRequest.Builder |
setQuotaUser(String quotaUser)
Alternative to userIp.
|
InsertRegionCommitmentHttpRequest.Builder |
setRegion(String region)
Name of the region for this request.
|
InsertRegionCommitmentHttpRequest.Builder |
setRequestId(String requestId)
An optional request ID to identify requests.
|
InsertRegionCommitmentHttpRequest.Builder |
setUserIp(String userIp)
IP address of the end user for whom the API call is being made.
|
public InsertRegionCommitmentHttpRequest.Builder mergeFrom(InsertRegionCommitmentHttpRequest other)
public String getAccessToken()
public InsertRegionCommitmentHttpRequest.Builder setAccessToken(String access_token)
public String getCallback()
public InsertRegionCommitmentHttpRequest.Builder setCallback(String callback)
public Commitment getCommitmentResource()
Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts. (== resource_for beta.regionCommitments ==) (== resource_for v1.regionCommitments ==)
public InsertRegionCommitmentHttpRequest.Builder setCommitmentResource(Commitment commitmentResource)
Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts. (== resource_for beta.regionCommitments ==) (== resource_for v1.regionCommitments ==)
public String getFields()
public InsertRegionCommitmentHttpRequest.Builder setFields(String fields)
public String getKey()
public InsertRegionCommitmentHttpRequest.Builder setKey(String key)
public String getPrettyPrint()
public InsertRegionCommitmentHttpRequest.Builder setPrettyPrint(String prettyPrint)
public String getQuotaUser()
public InsertRegionCommitmentHttpRequest.Builder setQuotaUser(String quotaUser)
public String getRegion()
public InsertRegionCommitmentHttpRequest.Builder setRegion(String region)
public String getRequestId()
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
public InsertRegionCommitmentHttpRequest.Builder setRequestId(String requestId)
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
public String getUserIp()
public InsertRegionCommitmentHttpRequest.Builder setUserIp(String userIp)
public InsertRegionCommitmentHttpRequest build()
public InsertRegionCommitmentHttpRequest.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.