Class StringListParameterProps.Builder
java.lang.Object
software.amazon.awscdk.services.ssm.StringListParameterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StringListParameterProps>
- Enclosing interface:
StringListParameterProps
@Stability(Stable)
public static final class StringListParameterProps.Builder
extends Object
implements software.amazon.jsii.Builder<StringListParameterProps>
A builder for
StringListParameterProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowedPattern
(String allowedPattern) Sets the value ofParameterOptions.getAllowedPattern()
build()
Builds the configured instance.description
(String description) Sets the value ofParameterOptions.getDescription()
parameterName
(String parameterName) Sets the value ofParameterOptions.getParameterName()
simpleName
(Boolean simpleName) Sets the value ofParameterOptions.getSimpleName()
stringListValue
(List<String> stringListValue) Sets the value ofStringListParameterProps.getStringListValue()
tier
(ParameterTier tier) Sets the value ofParameterOptions.getTier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stringListValue
@Stability(Stable) public StringListParameterProps.Builder stringListValue(List<String> stringListValue) Sets the value ofStringListParameterProps.getStringListValue()
- Parameters:
stringListValue
- The values of the parameter. This parameter is required. It may not reference another parameter and{{}}
cannot be used in the value.- Returns:
this
-
allowedPattern
Sets the value ofParameterOptions.getAllowedPattern()
- Parameters:
allowedPattern
- A regular expression used to validate the parameter value. For example, for String types with values restricted to numbers, you can specify the following:^\d+$
- Returns:
this
-
description
Sets the value ofParameterOptions.getDescription()
- Parameters:
description
- Information about the parameter that you want to add to the system.- Returns:
this
-
parameterName
Sets the value ofParameterOptions.getParameterName()
- Parameters:
parameterName
- The name of the parameter.- Returns:
this
-
simpleName
Sets the value ofParameterOptions.getSimpleName()
- Parameters:
simpleName
- Indicates whether the parameter name is a simple name. A parameter name without any "/" is considered a simple name. If the parameter name includes "/", setting simpleName to true might cause unintended issues such as duplicate "/" in the resulting ARN.This is required only if
parameterName
is a token, which means we are unable to detect if the name is simple or "path-like" for the purpose of rendering SSM parameter ARNs.If
parameterName
is not specified,simpleName
must betrue
(or undefined) since the name generated by AWS CloudFormation is always a simple name.- Returns:
this
-
tier
Sets the value ofParameterOptions.getTier()
- Parameters:
tier
- The tier of the string parameter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<StringListParameterProps>
- Returns:
- a new instance of
StringListParameterProps
- Throws:
NullPointerException
- if any required attribute was not provided
-