Class EndpointsServiceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.endpoints_service.EndpointsServiceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EndpointsServiceConfig>
- Enclosing interface:
- EndpointsServiceConfig
@Stability(Stable) public static final class EndpointsServiceConfig.Builder extends Object implements software.amazon.jsii.Builder<EndpointsServiceConfig>
A builder forEndpointsServiceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointsServiceConfigbuild()Builds the configured instance.EndpointsServiceConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()EndpointsServiceConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()EndpointsServiceConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()EndpointsServiceConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()EndpointsServiceConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()EndpointsServiceConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()EndpointsServiceConfig.BuildergrpcConfig(String grpcConfig)Sets the value ofEndpointsServiceConfig.getGrpcConfig()EndpointsServiceConfig.Builderid(String id)Sets the value ofEndpointsServiceConfig.getId()EndpointsServiceConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()EndpointsServiceConfig.BuilderopenapiConfig(String openapiConfig)Sets the value ofEndpointsServiceConfig.getOpenapiConfig()EndpointsServiceConfig.Builderproject(String project)Sets the value ofEndpointsServiceConfig.getProject()EndpointsServiceConfig.BuilderprotocOutputBase64(String protocOutputBase64)Sets the value ofEndpointsServiceConfig.getProtocOutputBase64()EndpointsServiceConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()EndpointsServiceConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()EndpointsServiceConfig.BuilderserviceName(String serviceName)Sets the value ofEndpointsServiceConfig.getServiceName()EndpointsServiceConfig.Buildertimeouts(EndpointsServiceTimeouts timeouts)Sets the value ofEndpointsServiceConfig.getTimeouts()
-
-
-
Method Detail
-
serviceName
@Stability(Stable) public EndpointsServiceConfig.Builder serviceName(String serviceName)
Sets the value ofEndpointsServiceConfig.getServiceName()- Parameters:
serviceName- The name of the service. Usually of the form $apiname.endpoints.$projectid.cloud.goog. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/endpoints_service#service_name EndpointsService#service_name}- Returns:
this
-
grpcConfig
@Stability(Stable) public EndpointsServiceConfig.Builder grpcConfig(String grpcConfig)
Sets the value ofEndpointsServiceConfig.getGrpcConfig()- Parameters:
grpcConfig- The full text of the Service Config YAML file (Example located here). If provided, must also provide protoc_output_base64. open_api config must not be provided. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/endpoints_service#grpc_config EndpointsService#grpc_config}- Returns:
this
-
id
@Stability(Stable) public EndpointsServiceConfig.Builder id(String id)
Sets the value ofEndpointsServiceConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/endpoints_service#id EndpointsService#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
openapiConfig
@Stability(Stable) public EndpointsServiceConfig.Builder openapiConfig(String openapiConfig)
Sets the value ofEndpointsServiceConfig.getOpenapiConfig()- Parameters:
openapiConfig- The full text of the OpenAPI YAML configuration as described here. Either this, or both of grpc_config and protoc_output_base64 must be specified. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/endpoints_service#openapi_config EndpointsService#openapi_config}- Returns:
this
-
project
@Stability(Stable) public EndpointsServiceConfig.Builder project(String project)
Sets the value ofEndpointsServiceConfig.getProject()- Parameters:
project- The project ID that the service belongs to. If not provided, provider project is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/endpoints_service#project EndpointsService#project}- Returns:
this
-
protocOutputBase64
@Stability(Stable) public EndpointsServiceConfig.Builder protocOutputBase64(String protocOutputBase64)
Sets the value ofEndpointsServiceConfig.getProtocOutputBase64()- Parameters:
protocOutputBase64- The full contents of the Service Descriptor File generated by protoc. This should be a compiled .pb file, base64-encoded. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/endpoints_service#protoc_output_base64 EndpointsService#protoc_output_base64}- Returns:
this
-
timeouts
@Stability(Stable) public EndpointsServiceConfig.Builder timeouts(EndpointsServiceTimeouts timeouts)
Sets the value ofEndpointsServiceConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/endpoints_service#timeouts EndpointsService#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public EndpointsServiceConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public EndpointsServiceConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public EndpointsServiceConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public EndpointsServiceConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public EndpointsServiceConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public EndpointsServiceConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public EndpointsServiceConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public EndpointsServiceConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public EndpointsServiceConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public EndpointsServiceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EndpointsServiceConfig>- Returns:
- a new instance of
EndpointsServiceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-