Class AppautoscalingScheduledActionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.appautoscaling_scheduled_action.AppautoscalingScheduledActionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AppautoscalingScheduledActionConfig>
- Enclosing interface:
- AppautoscalingScheduledActionConfig
@Stability(Stable) public static final class AppautoscalingScheduledActionConfig.Builder extends Object implements software.amazon.jsii.Builder<AppautoscalingScheduledActionConfig>
A builder forAppautoscalingScheduledActionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public AppautoscalingScheduledActionConfig.Builder name(String name)
Sets the value ofAppautoscalingScheduledActionConfig.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/appautoscaling_scheduled_action#name AppautoscalingScheduledAction#name}. This parameter is required.- Returns:
this
-
resourceId
@Stability(Stable) public AppautoscalingScheduledActionConfig.Builder resourceId(String resourceId)
Sets the value ofAppautoscalingScheduledActionConfig.getResourceId()- Parameters:
resourceId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/appautoscaling_scheduled_action#resource_id AppautoscalingScheduledAction#resource_id}. This parameter is required.- Returns:
this
-
scalableDimension
@Stability(Stable) public AppautoscalingScheduledActionConfig.Builder scalableDimension(String scalableDimension)
Sets the value ofAppautoscalingScheduledActionConfig.getScalableDimension()- Parameters:
scalableDimension- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/appautoscaling_scheduled_action#scalable_dimension AppautoscalingScheduledAction#scalable_dimension}. This parameter is required.- Returns:
this
-
scalableTargetAction
@Stability(Stable) public AppautoscalingScheduledActionConfig.Builder scalableTargetAction(AppautoscalingScheduledActionScalableTargetAction scalableTargetAction)
Sets the value ofAppautoscalingScheduledActionConfig.getScalableTargetAction()- Parameters:
scalableTargetAction- scalable_target_action block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/appautoscaling_scheduled_action#scalable_target_action AppautoscalingScheduledAction#scalable_target_action}- Returns:
this
-
schedule
@Stability(Stable) public AppautoscalingScheduledActionConfig.Builder schedule(String schedule)
Sets the value ofAppautoscalingScheduledActionConfig.getSchedule()- Parameters:
schedule- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/appautoscaling_scheduled_action#schedule AppautoscalingScheduledAction#schedule}. This parameter is required.- Returns:
this
-
serviceNamespace
@Stability(Stable) public AppautoscalingScheduledActionConfig.Builder serviceNamespace(String serviceNamespace)
Sets the value ofAppautoscalingScheduledActionConfig.getServiceNamespace()- Parameters:
serviceNamespace- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/appautoscaling_scheduled_action#service_namespace AppautoscalingScheduledAction#service_namespace}. This parameter is required.- Returns:
this
-
endTime
@Stability(Stable) public AppautoscalingScheduledActionConfig.Builder endTime(String endTime)
Sets the value ofAppautoscalingScheduledActionConfig.getEndTime()- Parameters:
endTime- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/appautoscaling_scheduled_action#end_time AppautoscalingScheduledAction#end_time}.- Returns:
this
-
id
@Stability(Stable) public AppautoscalingScheduledActionConfig.Builder id(String id)
Sets the value ofAppautoscalingScheduledActionConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/appautoscaling_scheduled_action#id AppautoscalingScheduledAction#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
-
startTime
@Stability(Stable) public AppautoscalingScheduledActionConfig.Builder startTime(String startTime)
Sets the value ofAppautoscalingScheduledActionConfig.getStartTime()- Parameters:
startTime- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/appautoscaling_scheduled_action#start_time AppautoscalingScheduledAction#start_time}.- Returns:
this
-
timezone
@Stability(Stable) public AppautoscalingScheduledActionConfig.Builder timezone(String timezone)
Sets the value ofAppautoscalingScheduledActionConfig.getTimezone()- Parameters:
timezone- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/appautoscaling_scheduled_action#timezone AppautoscalingScheduledAction#timezone}.- Returns:
this
-
connection
@Stability(Experimental) public AppautoscalingScheduledActionConfig.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 AppautoscalingScheduledActionConfig.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 AppautoscalingScheduledActionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public AppautoscalingScheduledActionConfig.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 AppautoscalingScheduledActionConfig.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 AppautoscalingScheduledActionConfig.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 AppautoscalingScheduledActionConfig.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 AppautoscalingScheduledActionConfig.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 AppautoscalingScheduledActionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public AppautoscalingScheduledActionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AppautoscalingScheduledActionConfig>- Returns:
- a new instance of
AppautoscalingScheduledActionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-