Class DeploymentState.Builder
- java.lang.Object
-
- com.pulumi.gcp.deploymentmanager.inputs.DeploymentState.Builder
-
- Enclosing class:
- DeploymentState
public static final class DeploymentState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(DeploymentState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentState
build()
DeploymentState.Builder
createPolicy(com.pulumi.core.Output<java.lang.String> createPolicy)
DeploymentState.Builder
createPolicy(java.lang.String createPolicy)
DeploymentState.Builder
deletePolicy(com.pulumi.core.Output<java.lang.String> deletePolicy)
DeploymentState.Builder
deletePolicy(java.lang.String deletePolicy)
DeploymentState.Builder
deploymentId(com.pulumi.core.Output<java.lang.String> deploymentId)
DeploymentState.Builder
deploymentId(java.lang.String deploymentId)
DeploymentState.Builder
description(com.pulumi.core.Output<java.lang.String> description)
DeploymentState.Builder
description(java.lang.String description)
DeploymentState.Builder
labels(com.pulumi.core.Output<java.util.List<DeploymentLabelArgs>> labels)
DeploymentState.Builder
labels(DeploymentLabelArgs... labels)
DeploymentState.Builder
labels(java.util.List<DeploymentLabelArgs> labels)
DeploymentState.Builder
manifest(com.pulumi.core.Output<java.lang.String> manifest)
DeploymentState.Builder
manifest(java.lang.String manifest)
DeploymentState.Builder
name(com.pulumi.core.Output<java.lang.String> name)
DeploymentState.Builder
name(java.lang.String name)
DeploymentState.Builder
preview(com.pulumi.core.Output<java.lang.Boolean> preview)
DeploymentState.Builder
preview(java.lang.Boolean preview)
DeploymentState.Builder
project(com.pulumi.core.Output<java.lang.String> project)
DeploymentState.Builder
project(java.lang.String project)
DeploymentState.Builder
selfLink(com.pulumi.core.Output<java.lang.String> selfLink)
DeploymentState.Builder
selfLink(java.lang.String selfLink)
DeploymentState.Builder
target(com.pulumi.core.Output<DeploymentTargetArgs> target)
DeploymentState.Builder
target(DeploymentTargetArgs target)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(DeploymentState defaults)
-
-
Method Detail
-
createPolicy
public DeploymentState.Builder createPolicy(@Nullable com.pulumi.core.Output<java.lang.String> createPolicy)
- Parameters:
createPolicy
- Set the policy to use for creating new resources. Only used on create and update. Valid values are `CREATE_OR_ACQUIRE` (default) or `ACQUIRE`. If set to `ACQUIRE` and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value is `CREATE_OR_ACQUIRE`. Possible values are: `ACQUIRE`, `CREATE_OR_ACQUIRE`.- Returns:
- builder
-
createPolicy
public DeploymentState.Builder createPolicy(java.lang.String createPolicy)
- Parameters:
createPolicy
- Set the policy to use for creating new resources. Only used on create and update. Valid values are `CREATE_OR_ACQUIRE` (default) or `ACQUIRE`. If set to `ACQUIRE` and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value is `CREATE_OR_ACQUIRE`. Possible values are: `ACQUIRE`, `CREATE_OR_ACQUIRE`.- Returns:
- builder
-
deletePolicy
public DeploymentState.Builder deletePolicy(@Nullable com.pulumi.core.Output<java.lang.String> deletePolicy)
- Parameters:
deletePolicy
- Set the policy to use for deleting new resources on update/delete. Valid values are `DELETE` (default) or `ABANDON`. If `DELETE`, resource is deleted after removal from Deployment Manager. If `ABANDON`, the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value is `DELETE`. Possible values are: `ABANDON`, `DELETE`.- Returns:
- builder
-
deletePolicy
public DeploymentState.Builder deletePolicy(java.lang.String deletePolicy)
- Parameters:
deletePolicy
- Set the policy to use for deleting new resources on update/delete. Valid values are `DELETE` (default) or `ABANDON`. If `DELETE`, resource is deleted after removal from Deployment Manager. If `ABANDON`, the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value is `DELETE`. Possible values are: `ABANDON`, `DELETE`.- Returns:
- builder
-
deploymentId
public DeploymentState.Builder deploymentId(@Nullable com.pulumi.core.Output<java.lang.String> deploymentId)
- Parameters:
deploymentId
- Unique identifier for deployment. Output only.- Returns:
- builder
-
deploymentId
public DeploymentState.Builder deploymentId(java.lang.String deploymentId)
- Parameters:
deploymentId
- Unique identifier for deployment. Output only.- Returns:
- builder
-
description
public DeploymentState.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- Optional user-provided description of deployment.- Returns:
- builder
-
description
public DeploymentState.Builder description(java.lang.String description)
- Parameters:
description
- Optional user-provided description of deployment.- Returns:
- builder
-
labels
public DeploymentState.Builder labels(@Nullable com.pulumi.core.Output<java.util.List<DeploymentLabelArgs>> labels)
- Parameters:
labels
- Key-value pairs to apply to this labels. Structure is documented below.- Returns:
- builder
-
labels
public DeploymentState.Builder labels(java.util.List<DeploymentLabelArgs> labels)
- Parameters:
labels
- Key-value pairs to apply to this labels. Structure is documented below.- Returns:
- builder
-
labels
public DeploymentState.Builder labels(DeploymentLabelArgs... labels)
- Parameters:
labels
- Key-value pairs to apply to this labels. Structure is documented below.- Returns:
- builder
-
manifest
public DeploymentState.Builder manifest(@Nullable com.pulumi.core.Output<java.lang.String> manifest)
- Parameters:
manifest
- Output only. URL of the manifest representing the last manifest that was successfully deployed.- Returns:
- builder
-
manifest
public DeploymentState.Builder manifest(java.lang.String manifest)
- Parameters:
manifest
- Output only. URL of the manifest representing the last manifest that was successfully deployed.- Returns:
- builder
-
name
public DeploymentState.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- Unique name for the deployment- Returns:
- builder
-
name
public DeploymentState.Builder name(java.lang.String name)
- Parameters:
name
- Unique name for the deployment- Returns:
- builder
-
preview
public DeploymentState.Builder preview(@Nullable com.pulumi.core.Output<java.lang.Boolean> preview)
- Parameters:
preview
- If set to true, a deployment is created with "shell" resources that are not actually instantiated. This allows you to preview a deployment. It can be updated to false to actually deploy with real resources. ~>**NOTE:** Deployment Manager does not allow update of a deployment in preview (unless updating to preview=false). Thus, the provider will force-recreate deployments if either preview is updated to true or if other fields are updated while preview is true.- Returns:
- builder
-
preview
public DeploymentState.Builder preview(java.lang.Boolean preview)
- Parameters:
preview
- If set to true, a deployment is created with "shell" resources that are not actually instantiated. This allows you to preview a deployment. It can be updated to false to actually deploy with real resources. ~>**NOTE:** Deployment Manager does not allow update of a deployment in preview (unless updating to preview=false). Thus, the provider will force-recreate deployments if either preview is updated to true or if other fields are updated while preview is true.- Returns:
- builder
-
project
public DeploymentState.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 DeploymentState.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
-
selfLink
public DeploymentState.Builder selfLink(@Nullable com.pulumi.core.Output<java.lang.String> selfLink)
- Parameters:
selfLink
- Output only. Server defined URL for the resource.- Returns:
- builder
-
selfLink
public DeploymentState.Builder selfLink(java.lang.String selfLink)
- Parameters:
selfLink
- Output only. Server defined URL for the resource.- Returns:
- builder
-
target
public DeploymentState.Builder target(@Nullable com.pulumi.core.Output<DeploymentTargetArgs> target)
- Parameters:
target
- Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.- Returns:
- builder
-
target
public DeploymentState.Builder target(DeploymentTargetArgs target)
- Parameters:
target
- Parameters that define your deployment, including the deployment configuration and relevant templates. Structure is documented below.- Returns:
- builder
-
build
public DeploymentState build()
-
-