Class CloudSchedulerJobHttpTarget.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_scheduler_job.CloudSchedulerJobHttpTarget.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudSchedulerJobHttpTarget>
- Enclosing interface:
- CloudSchedulerJobHttpTarget
@Stability(Stable) public static final class CloudSchedulerJobHttpTarget.Builder extends Object implements software.amazon.jsii.Builder<CloudSchedulerJobHttpTarget>
A builder forCloudSchedulerJobHttpTarget
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudSchedulerJobHttpTarget.Builderbody(String body)Sets the value ofCloudSchedulerJobHttpTarget.getBody()CloudSchedulerJobHttpTargetbuild()Builds the configured instance.CloudSchedulerJobHttpTarget.Builderheaders(Map<String,String> headers)Sets the value ofCloudSchedulerJobHttpTarget.getHeaders()CloudSchedulerJobHttpTarget.BuilderhttpMethod(String httpMethod)Sets the value ofCloudSchedulerJobHttpTarget.getHttpMethod()CloudSchedulerJobHttpTarget.BuilderoauthToken(CloudSchedulerJobHttpTargetOauthToken oauthToken)Sets the value ofCloudSchedulerJobHttpTarget.getOauthToken()CloudSchedulerJobHttpTarget.BuilderoidcToken(CloudSchedulerJobHttpTargetOidcToken oidcToken)Sets the value ofCloudSchedulerJobHttpTarget.getOidcToken()CloudSchedulerJobHttpTarget.Builderuri(String uri)Sets the value ofCloudSchedulerJobHttpTarget.getUri()
-
-
-
Method Detail
-
uri
@Stability(Stable) public CloudSchedulerJobHttpTarget.Builder uri(String uri)
Sets the value ofCloudSchedulerJobHttpTarget.getUri()- Parameters:
uri- The full URI path that the request will be sent to. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_scheduler_job#uri CloudSchedulerJob#uri}- Returns:
this
-
body
@Stability(Stable) public CloudSchedulerJobHttpTarget.Builder body(String body)
Sets the value ofCloudSchedulerJobHttpTarget.getBody()- Parameters:
body- HTTP request body. A request body is allowed only if the HTTP method is POST, PUT, or PATCH. It is an error to set body on a job with an incompatible HttpMethod. A base64-encoded string. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_scheduler_job#body CloudSchedulerJob#body}- Returns:
this
-
headers
@Stability(Stable) public CloudSchedulerJobHttpTarget.Builder headers(Map<String,String> headers)
Sets the value ofCloudSchedulerJobHttpTarget.getHeaders()- Parameters:
headers- This map contains the header field names and values. Repeated headers are not supported, but a header value can contain commas. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_scheduler_job#headers CloudSchedulerJob#headers}- Returns:
this
-
httpMethod
@Stability(Stable) public CloudSchedulerJobHttpTarget.Builder httpMethod(String httpMethod)
Sets the value ofCloudSchedulerJobHttpTarget.getHttpMethod()- Parameters:
httpMethod- Which HTTP method to use for the request. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_scheduler_job#http_method CloudSchedulerJob#http_method}- Returns:
this
-
oauthToken
@Stability(Stable) public CloudSchedulerJobHttpTarget.Builder oauthToken(CloudSchedulerJobHttpTargetOauthToken oauthToken)
Sets the value ofCloudSchedulerJobHttpTarget.getOauthToken()- Parameters:
oauthToken- oauth_token block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_scheduler_job#oauth_token CloudSchedulerJob#oauth_token}- Returns:
this
-
oidcToken
@Stability(Stable) public CloudSchedulerJobHttpTarget.Builder oidcToken(CloudSchedulerJobHttpTargetOidcToken oidcToken)
Sets the value ofCloudSchedulerJobHttpTarget.getOidcToken()- Parameters:
oidcToken- oidc_token block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_scheduler_job#oidc_token CloudSchedulerJob#oidc_token}- Returns:
this
-
build
@Stability(Stable) public CloudSchedulerJobHttpTarget build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudSchedulerJobHttpTarget>- Returns:
- a new instance of
CloudSchedulerJobHttpTarget - Throws:
NullPointerException- if any required attribute was not provided
-
-