Class ApigeeTargetServerConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.apigee_target_server.ApigeeTargetServerConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApigeeTargetServerConfig>
- Enclosing interface:
- ApigeeTargetServerConfig
@Stability(Stable) public static final class ApigeeTargetServerConfig.Builder extends Object implements software.amazon.jsii.Builder<ApigeeTargetServerConfig>
A builder forApigeeTargetServerConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApigeeTargetServerConfigbuild()Builds the configured instance.ApigeeTargetServerConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ApigeeTargetServerConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ApigeeTargetServerConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()ApigeeTargetServerConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()ApigeeTargetServerConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()ApigeeTargetServerConfig.Builderdescription(String description)Sets the value ofApigeeTargetServerConfig.getDescription()ApigeeTargetServerConfig.BuilderenvId(String envId)Sets the value ofApigeeTargetServerConfig.getEnvId()ApigeeTargetServerConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()ApigeeTargetServerConfig.Builderhost(String host)Sets the value ofApigeeTargetServerConfig.getHost()ApigeeTargetServerConfig.Builderid(String id)Sets the value ofApigeeTargetServerConfig.getId()ApigeeTargetServerConfig.BuilderisEnabled(com.hashicorp.cdktf.IResolvable isEnabled)Sets the value ofApigeeTargetServerConfig.getIsEnabled()ApigeeTargetServerConfig.BuilderisEnabled(Boolean isEnabled)Sets the value ofApigeeTargetServerConfig.getIsEnabled()ApigeeTargetServerConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()ApigeeTargetServerConfig.Buildername(String name)Sets the value ofApigeeTargetServerConfig.getName()ApigeeTargetServerConfig.Builderport(Number port)Sets the value ofApigeeTargetServerConfig.getPort()ApigeeTargetServerConfig.Builderprotocol(String protocol)Sets the value ofApigeeTargetServerConfig.getProtocol()ApigeeTargetServerConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()ApigeeTargetServerConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()ApigeeTargetServerConfig.BuildersSlInfo(ApigeeTargetServerSSlInfo sSlInfo)Sets the value ofApigeeTargetServerConfig.getSSlInfo()ApigeeTargetServerConfig.Buildertimeouts(ApigeeTargetServerTimeouts timeouts)Sets the value ofApigeeTargetServerConfig.getTimeouts()
-
-
-
Method Detail
-
envId
@Stability(Stable) public ApigeeTargetServerConfig.Builder envId(String envId)
Sets the value ofApigeeTargetServerConfig.getEnvId()- Parameters:
envId- The Apigee environment group associated with the Apigee environment, in the format 'organizations/{{org_name}}/environments/{{env_name}}'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apigee_target_server#env_id ApigeeTargetServer#env_id}- Returns:
this
-
host
@Stability(Stable) public ApigeeTargetServerConfig.Builder host(String host)
Sets the value ofApigeeTargetServerConfig.getHost()- Parameters:
host- The host name this target connects to. Value must be a valid hostname as described by RFC-1123. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apigee_target_server#host ApigeeTargetServer#host}- Returns:
this
-
name
@Stability(Stable) public ApigeeTargetServerConfig.Builder name(String name)
Sets the value ofApigeeTargetServerConfig.getName()- Parameters:
name- The resource id of this reference. Values must match the regular expression [\w\s-.]+. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apigee_target_server#name ApigeeTargetServer#name}- Returns:
this
-
port
@Stability(Stable) public ApigeeTargetServerConfig.Builder port(Number port)
Sets the value ofApigeeTargetServerConfig.getPort()- Parameters:
port- The port number this target connects to on the given host. Value must be between 1 and 65535, inclusive. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apigee_target_server#port ApigeeTargetServer#port}- Returns:
this
-
description
@Stability(Stable) public ApigeeTargetServerConfig.Builder description(String description)
Sets the value ofApigeeTargetServerConfig.getDescription()- Parameters:
description- A human-readable description of this TargetServer. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apigee_target_server#description ApigeeTargetServer#description}- Returns:
this
-
id
@Stability(Stable) public ApigeeTargetServerConfig.Builder id(String id)
Sets the value ofApigeeTargetServerConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apigee_target_server#id ApigeeTargetServer#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
-
isEnabled
@Stability(Stable) public ApigeeTargetServerConfig.Builder isEnabled(Boolean isEnabled)
Sets the value ofApigeeTargetServerConfig.getIsEnabled()- Parameters:
isEnabled- Enabling/disabling a TargetServer is useful when TargetServers are used in load balancing configurations, and one or more TargetServers need to taken out of rotation periodically. Defaults to true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apigee_target_server#is_enabled ApigeeTargetServer#is_enabled}- Returns:
this
-
isEnabled
@Stability(Stable) public ApigeeTargetServerConfig.Builder isEnabled(com.hashicorp.cdktf.IResolvable isEnabled)
Sets the value ofApigeeTargetServerConfig.getIsEnabled()- Parameters:
isEnabled- Enabling/disabling a TargetServer is useful when TargetServers are used in load balancing configurations, and one or more TargetServers need to taken out of rotation periodically. Defaults to true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apigee_target_server#is_enabled ApigeeTargetServer#is_enabled}- Returns:
this
-
protocol
@Stability(Stable) public ApigeeTargetServerConfig.Builder protocol(String protocol)
Sets the value ofApigeeTargetServerConfig.getProtocol()- Parameters:
protocol- Immutable. The protocol used by this TargetServer. Possible values: ["HTTP", "HTTP2", "GRPC_TARGET", "GRPC", "EXTERNAL_CALLOUT"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apigee_target_server#protocol ApigeeTargetServer#protocol}- Returns:
this
-
sSlInfo
@Stability(Stable) public ApigeeTargetServerConfig.Builder sSlInfo(ApigeeTargetServerSSlInfo sSlInfo)
Sets the value ofApigeeTargetServerConfig.getSSlInfo()- Parameters:
sSlInfo- s_sl_info block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apigee_target_server#s_sl_info ApigeeTargetServer#s_sl_info}- Returns:
this
-
timeouts
@Stability(Stable) public ApigeeTargetServerConfig.Builder timeouts(ApigeeTargetServerTimeouts timeouts)
Sets the value ofApigeeTargetServerConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apigee_target_server#timeouts ApigeeTargetServer#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ApigeeTargetServerConfig.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 ApigeeTargetServerConfig.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 ApigeeTargetServerConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ApigeeTargetServerConfig.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 ApigeeTargetServerConfig.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 ApigeeTargetServerConfig.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 ApigeeTargetServerConfig.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 ApigeeTargetServerConfig.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 ApigeeTargetServerConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ApigeeTargetServerConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApigeeTargetServerConfig>- Returns:
- a new instance of
ApigeeTargetServerConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-