Class ClouddeployAutomationRulesPromoteReleaseRule.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.clouddeploy_automation.ClouddeployAutomationRulesPromoteReleaseRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClouddeployAutomationRulesPromoteReleaseRule>
- Enclosing interface:
- ClouddeployAutomationRulesPromoteReleaseRule
@Stability(Stable) public static final class ClouddeployAutomationRulesPromoteReleaseRule.Builder extends Object implements software.amazon.jsii.Builder<ClouddeployAutomationRulesPromoteReleaseRule>
A builder forClouddeployAutomationRulesPromoteReleaseRule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClouddeployAutomationRulesPromoteReleaseRulebuild()Builds the configured instance.ClouddeployAutomationRulesPromoteReleaseRule.BuilderdestinationPhase(String destinationPhase)Sets the value ofClouddeployAutomationRulesPromoteReleaseRule.getDestinationPhase()ClouddeployAutomationRulesPromoteReleaseRule.BuilderdestinationTargetId(String destinationTargetId)Sets the value ofClouddeployAutomationRulesPromoteReleaseRule.getDestinationTargetId()ClouddeployAutomationRulesPromoteReleaseRule.Builderid(String id)Sets the value ofClouddeployAutomationRulesPromoteReleaseRule.getId()ClouddeployAutomationRulesPromoteReleaseRule.Builderwait(String wait)Sets the value ofClouddeployAutomationRulesPromoteReleaseRule.getWait()
-
-
-
Method Detail
-
id
@Stability(Stable) public ClouddeployAutomationRulesPromoteReleaseRule.Builder id(String id)
Sets the value ofClouddeployAutomationRulesPromoteReleaseRule.getId()- Parameters:
id- Required. This parameter is required. ID of the rule. This id must be unique in the 'Automation' resource to which this rule belongs. The format is 'a-z{0,62}'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_automation#id ClouddeployAutomation#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
-
destinationPhase
@Stability(Stable) public ClouddeployAutomationRulesPromoteReleaseRule.Builder destinationPhase(String destinationPhase)
Sets the value ofClouddeployAutomationRulesPromoteReleaseRule.getDestinationPhase()- Parameters:
destinationPhase- Optional. The starting phase of the rollout created by this operation. Default to the first phase. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_automation#destination_phase ClouddeployAutomation#destination_phase}- Returns:
this
-
destinationTargetId
@Stability(Stable) public ClouddeployAutomationRulesPromoteReleaseRule.Builder destinationTargetId(String destinationTargetId)
Sets the value ofClouddeployAutomationRulesPromoteReleaseRule.getDestinationTargetId()- Parameters:
destinationTargetId- Optional. The ID of the stage in the pipeline to which this 'Release' is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name. It only needs the ID to determine if the target is one of the stages in the promotion sequence defined in the pipeline. * "@next", the next target in the promotion sequence. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_automation#destination_target_id ClouddeployAutomation#destination_target_id}- Returns:
this
-
wait
@Stability(Stable) public ClouddeployAutomationRulesPromoteReleaseRule.Builder wait(String wait)
Sets the value ofClouddeployAutomationRulesPromoteReleaseRule.getWait()- Parameters:
wait- Optional. How long the release need to be paused until being promoted to the next target. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/clouddeploy_automation#wait ClouddeployAutomation#wait}- Returns:
this
-
build
@Stability(Stable) public ClouddeployAutomationRulesPromoteReleaseRule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClouddeployAutomationRulesPromoteReleaseRule>- Returns:
- a new instance of
ClouddeployAutomationRulesPromoteReleaseRule - Throws:
NullPointerException- if any required attribute was not provided
-
-