Class CfnHostedConfigurationVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.appconfig.CfnHostedConfigurationVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHostedConfigurationVersionProps>
- Enclosing interface:
CfnHostedConfigurationVersionProps
@Stability(Stable)
public static final class CfnHostedConfigurationVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHostedConfigurationVersionProps>
A builder for
CfnHostedConfigurationVersionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) Sets the value ofCfnHostedConfigurationVersionProps.getApplicationId()
build()
Builds the configured instance.configurationProfileId
(String configurationProfileId) Sets the value ofCfnHostedConfigurationVersionProps.getConfigurationProfileId()
Sets the value ofCfnHostedConfigurationVersionProps.getContent()
contentType
(String contentType) Sets the value ofCfnHostedConfigurationVersionProps.getContentType()
description
(String description) Sets the value ofCfnHostedConfigurationVersionProps.getDescription()
latestVersionNumber
(Number latestVersionNumber) Sets the value ofCfnHostedConfigurationVersionProps.getLatestVersionNumber()
versionLabel
(String versionLabel) Sets the value ofCfnHostedConfigurationVersionProps.getVersionLabel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationId
@Stability(Stable) public CfnHostedConfigurationVersionProps.Builder applicationId(String applicationId) Sets the value ofCfnHostedConfigurationVersionProps.getApplicationId()
- Parameters:
applicationId
- The application ID. This parameter is required.- Returns:
this
-
configurationProfileId
@Stability(Stable) public CfnHostedConfigurationVersionProps.Builder configurationProfileId(String configurationProfileId) Sets the value ofCfnHostedConfigurationVersionProps.getConfigurationProfileId()
- Parameters:
configurationProfileId
- The configuration profile ID. This parameter is required.- Returns:
this
-
content
Sets the value ofCfnHostedConfigurationVersionProps.getContent()
- Parameters:
content
- The configuration data, as bytes. This parameter is required.AWS AppConfig accepts any type of data, including text formats like JSON or TOML, or binary formats like protocol buffers or compressed data.
- Returns:
this
-
contentType
@Stability(Stable) public CfnHostedConfigurationVersionProps.Builder contentType(String contentType) Sets the value ofCfnHostedConfigurationVersionProps.getContentType()
- Parameters:
contentType
- A standard MIME type describing the format of the configuration content. This parameter is required. For more information, see Content-Type .- Returns:
this
-
description
@Stability(Stable) public CfnHostedConfigurationVersionProps.Builder description(String description) Sets the value ofCfnHostedConfigurationVersionProps.getDescription()
- Parameters:
description
- A description of the configuration.- Returns:
this
-
latestVersionNumber
@Stability(Stable) public CfnHostedConfigurationVersionProps.Builder latestVersionNumber(Number latestVersionNumber) Sets the value ofCfnHostedConfigurationVersionProps.getLatestVersionNumber()
- Parameters:
latestVersionNumber
- An optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version. To ensure your data is not overwritten when creating multiple hosted configuration versions in rapid succession, specify the version number of the latest hosted configuration version.- Returns:
this
-
versionLabel
@Stability(Stable) public CfnHostedConfigurationVersionProps.Builder versionLabel(String versionLabel) Sets the value ofCfnHostedConfigurationVersionProps.getVersionLabel()
- Parameters:
versionLabel
- A user-defined label for an AWS AppConfig hosted configuration version.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnHostedConfigurationVersionProps>
- Returns:
- a new instance of
CfnHostedConfigurationVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-