Class CfnService.AdvancedConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnService.AdvancedConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.AdvancedConfigurationProperty>
- Enclosing interface:
CfnService.AdvancedConfigurationProperty
@Stability(Stable)
public static final class CfnService.AdvancedConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.AdvancedConfigurationProperty>
A builder for
CfnService.AdvancedConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalternateTargetGroupArn
(String alternateTargetGroupArn) Sets the value ofCfnService.AdvancedConfigurationProperty.getAlternateTargetGroupArn()
build()
Builds the configured instance.productionListenerRule
(String productionListenerRule) Sets the value ofCfnService.AdvancedConfigurationProperty.getProductionListenerRule()
Sets the value ofCfnService.AdvancedConfigurationProperty.getRoleArn()
testListenerRule
(String testListenerRule) Sets the value ofCfnService.AdvancedConfigurationProperty.getTestListenerRule()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alternateTargetGroupArn
@Stability(Stable) public CfnService.AdvancedConfigurationProperty.Builder alternateTargetGroupArn(String alternateTargetGroupArn) Sets the value ofCfnService.AdvancedConfigurationProperty.getAlternateTargetGroupArn()
- Parameters:
alternateTargetGroupArn
- the value to be set. This parameter is required.- Returns:
this
-
productionListenerRule
@Stability(Stable) public CfnService.AdvancedConfigurationProperty.Builder productionListenerRule(String productionListenerRule) Sets the value ofCfnService.AdvancedConfigurationProperty.getProductionListenerRule()
- Parameters:
productionListenerRule
- the value to be set.- Returns:
this
-
roleArn
Sets the value ofCfnService.AdvancedConfigurationProperty.getRoleArn()
- Parameters:
roleArn
- the value to be set.- Returns:
this
-
testListenerRule
@Stability(Stable) public CfnService.AdvancedConfigurationProperty.Builder testListenerRule(String testListenerRule) Sets the value ofCfnService.AdvancedConfigurationProperty.getTestListenerRule()
- Parameters:
testListenerRule
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService.AdvancedConfigurationProperty>
- Returns:
- a new instance of
CfnService.AdvancedConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-