Class ParameterOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ssm.ParameterOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ParameterOptions>
- Enclosing interface:
- ParameterOptions
@Stability(Stable)
public static final class ParameterOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ParameterOptions>
A builder for
ParameterOptions-
Constructor Summary
Constructors -
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()tier(ParameterTier tier) Sets the value ofParameterOptions.getTier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 of the parameter name is a simple name (i.e. does not include "/" separators). This is only required only ifparameterNameis 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
parameterNameis not specified,simpleNamemust 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:
buildin interfacesoftware.amazon.jsii.Builder<ParameterOptions>- Returns:
- a new instance of
ParameterOptions - Throws:
NullPointerException- if any required attribute was not provided
-