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
Constructors -
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 content of the configuration or the configuration data. This parameter is required.- 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnHostedConfigurationVersionProps>- Returns:
- a new instance of
CfnHostedConfigurationVersionProps - Throws:
NullPointerException- if any required attribute was not provided
-