Class HostedConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.appconfig.HostedConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HostedConfigurationProps>
- Enclosing interface:
HostedConfigurationProps
@Stability(Stable)
public static final class HostedConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<HostedConfigurationProps>
A builder for
HostedConfigurationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplication
(IApplication application) Sets the value ofConfigurationProps.getApplication()
build()
Builds the configured instance.content
(ConfigurationContent content) Sets the value ofHostedConfigurationProps.getContent()
deploymentKey
(IKey deploymentKey) Sets the value ofConfigurationOptions.getDeploymentKey()
deploymentStrategy
(IDeploymentStrategy deploymentStrategy) Sets the value ofConfigurationOptions.getDeploymentStrategy()
deployTo
(List<? extends IEnvironment> deployTo) Sets the value ofConfigurationOptions.getDeployTo()
description
(String description) Sets the value ofConfigurationOptions.getDescription()
latestVersionNumber
(Number latestVersionNumber) Sets the value ofHostedConfigurationProps.getLatestVersionNumber()
Sets the value ofConfigurationOptions.getName()
type
(ConfigurationType type) Sets the value ofConfigurationOptions.getType()
validators
(List<? extends IValidator> validators) Sets the value ofConfigurationOptions.getValidators()
versionLabel
(String versionLabel) Sets the value ofHostedConfigurationProps.getVersionLabel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
Sets the value ofHostedConfigurationProps.getContent()
- Parameters:
content
- The content of the hosted configuration. This parameter is required.- Returns:
this
-
latestVersionNumber
@Stability(Stable) public HostedConfigurationProps.Builder latestVersionNumber(Number latestVersionNumber) Sets the value ofHostedConfigurationProps.getLatestVersionNumber()
- Parameters:
latestVersionNumber
- The latest version number of the hosted configuration.- Returns:
this
-
versionLabel
Sets the value ofHostedConfigurationProps.getVersionLabel()
- Parameters:
versionLabel
- The version label of the hosted configuration.- Returns:
this
-
application
Sets the value ofConfigurationProps.getApplication()
- Parameters:
application
- The application associated with the configuration. This parameter is required.- Returns:
this
-
deploymentKey
Sets the value ofConfigurationOptions.getDeploymentKey()
- Parameters:
deploymentKey
- The deployment key of the configuration.- Returns:
this
-
deploymentStrategy
@Stability(Stable) public HostedConfigurationProps.Builder deploymentStrategy(IDeploymentStrategy deploymentStrategy) Sets the value ofConfigurationOptions.getDeploymentStrategy()
- Parameters:
deploymentStrategy
- The deployment strategy for the configuration.- Returns:
this
-
deployTo
@Stability(Stable) public HostedConfigurationProps.Builder deployTo(List<? extends IEnvironment> deployTo) Sets the value ofConfigurationOptions.getDeployTo()
- Parameters:
deployTo
- The list of environments to deploy the configuration to. If this parameter is not specified, then there will be no deployment created alongside this configuration.Deployments can be added later using the
IEnvironment.addDeployment
orIEnvironment.addDeployments
methods.- Returns:
this
-
description
Sets the value ofConfigurationOptions.getDescription()
- Parameters:
description
- The description of the configuration.- Returns:
this
-
name
Sets the value ofConfigurationOptions.getName()
- Parameters:
name
- The name of the configuration.- Returns:
this
-
type
Sets the value ofConfigurationOptions.getType()
- Parameters:
type
- The type of configuration.- Returns:
this
-
validators
@Stability(Stable) public HostedConfigurationProps.Builder validators(List<? extends IValidator> validators) Sets the value ofConfigurationOptions.getValidators()
- Parameters:
validators
- The validators for the configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HostedConfigurationProps>
- Returns:
- a new instance of
HostedConfigurationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-