Class CfnService.KeyValuePairProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnService.KeyValuePairProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.KeyValuePairProperty>
- Enclosing interface:
CfnService.KeyValuePairProperty
@Stability(Stable)
public static final class CfnService.KeyValuePairProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.KeyValuePairProperty>
A builder for
CfnService.KeyValuePairProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnService.KeyValuePairProperty.getName()
Sets the value ofCfnService.KeyValuePairProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnService.KeyValuePairProperty.getName()
- Parameters:
name
- The key name string to map to a value.- Returns:
this
-
value
Sets the value ofCfnService.KeyValuePairProperty.getValue()
- Parameters:
value
- The value string to which the key name is mapped.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService.KeyValuePairProperty>
- Returns:
- a new instance of
CfnService.KeyValuePairProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-