Package com.pulumi.gcp.compute
Class TargetInstanceArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.compute.TargetInstanceArgs.Builder
-
- Enclosing class:
- TargetInstanceArgs
public static final class TargetInstanceArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(TargetInstanceArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetInstanceArgs
build()
TargetInstanceArgs.Builder
description(com.pulumi.core.Output<java.lang.String> description)
TargetInstanceArgs.Builder
description(java.lang.String description)
TargetInstanceArgs.Builder
instance(com.pulumi.core.Output<java.lang.String> instance)
TargetInstanceArgs.Builder
instance(java.lang.String instance)
TargetInstanceArgs.Builder
name(com.pulumi.core.Output<java.lang.String> name)
TargetInstanceArgs.Builder
name(java.lang.String name)
TargetInstanceArgs.Builder
natPolicy(com.pulumi.core.Output<java.lang.String> natPolicy)
TargetInstanceArgs.Builder
natPolicy(java.lang.String natPolicy)
TargetInstanceArgs.Builder
network(com.pulumi.core.Output<java.lang.String> network)
TargetInstanceArgs.Builder
network(java.lang.String network)
TargetInstanceArgs.Builder
project(com.pulumi.core.Output<java.lang.String> project)
TargetInstanceArgs.Builder
project(java.lang.String project)
TargetInstanceArgs.Builder
securityPolicy(com.pulumi.core.Output<java.lang.String> securityPolicy)
TargetInstanceArgs.Builder
securityPolicy(java.lang.String securityPolicy)
TargetInstanceArgs.Builder
zone(com.pulumi.core.Output<java.lang.String> zone)
TargetInstanceArgs.Builder
zone(java.lang.String zone)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(TargetInstanceArgs defaults)
-
-
Method Detail
-
description
public TargetInstanceArgs.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- An optional description of this resource.- Returns:
- builder
-
description
public TargetInstanceArgs.Builder description(java.lang.String description)
- Parameters:
description
- An optional description of this resource.- Returns:
- builder
-
instance
public TargetInstanceArgs.Builder instance(com.pulumi.core.Output<java.lang.String> instance)
- Parameters:
instance
- The Compute instance VM handling traffic for this target instance. Accepts the instance self-link, relative path (e.g. `projects/project/zones/zone/instances/instance`) or name. If name is given, the zone will default to the given zone or the provider-default zone and the project will default to the provider-level project. ***- Returns:
- builder
-
instance
public TargetInstanceArgs.Builder instance(java.lang.String instance)
- Parameters:
instance
- The Compute instance VM handling traffic for this target instance. Accepts the instance self-link, relative path (e.g. `projects/project/zones/zone/instances/instance`) or name. If name is given, the zone will default to the given zone or the provider-default zone and the project will default to the provider-level project. ***- Returns:
- builder
-
name
public TargetInstanceArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Returns:
- builder
-
name
public TargetInstanceArgs.Builder name(java.lang.String name)
- Parameters:
name
- Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Returns:
- builder
-
natPolicy
public TargetInstanceArgs.Builder natPolicy(@Nullable com.pulumi.core.Output<java.lang.String> natPolicy)
- Parameters:
natPolicy
- NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. Default value is `NO_NAT`. Possible values are: `NO_NAT`.- Returns:
- builder
-
natPolicy
public TargetInstanceArgs.Builder natPolicy(java.lang.String natPolicy)
- Parameters:
natPolicy
- NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. Default value is `NO_NAT`. Possible values are: `NO_NAT`.- Returns:
- builder
-
network
public TargetInstanceArgs.Builder network(@Nullable com.pulumi.core.Output<java.lang.String> network)
- Parameters:
network
- The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to.- Returns:
- builder
-
network
public TargetInstanceArgs.Builder network(java.lang.String network)
- Parameters:
network
- The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to.- Returns:
- builder
-
project
public TargetInstanceArgs.Builder project(@Nullable com.pulumi.core.Output<java.lang.String> project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
project
public TargetInstanceArgs.Builder project(java.lang.String project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
securityPolicy
public TargetInstanceArgs.Builder securityPolicy(@Nullable com.pulumi.core.Output<java.lang.String> securityPolicy)
- Parameters:
securityPolicy
- The resource URL for the security policy associated with this target instance.- Returns:
- builder
-
securityPolicy
public TargetInstanceArgs.Builder securityPolicy(java.lang.String securityPolicy)
- Parameters:
securityPolicy
- The resource URL for the security policy associated with this target instance.- Returns:
- builder
-
zone
public TargetInstanceArgs.Builder zone(@Nullable com.pulumi.core.Output<java.lang.String> zone)
- Parameters:
zone
- URL of the zone where the target instance resides.- Returns:
- builder
-
zone
public TargetInstanceArgs.Builder zone(java.lang.String zone)
- Parameters:
zone
- URL of the zone where the target instance resides.- Returns:
- builder
-
build
public TargetInstanceArgs build()
-
-