Class ApigeeTargetServerConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • envId

        @Stability(Stable)
        public ApigeeTargetServerConfig.Builder envId​(String envId)
        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)
        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)
        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)
        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)
        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)
        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)
        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)
        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)
        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
      • connection

        @Stability(Experimental)
        public ApigeeTargetServerConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public ApigeeTargetServerConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public ApigeeTargetServerConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this