Class SourcedConfigurationOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appconfig.SourcedConfigurationOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SourcedConfigurationOptions>
- Enclosing interface:
SourcedConfigurationOptions
@Stability(Stable)
public static final class SourcedConfigurationOptions.Builder
extends Object
implements software.amazon.jsii.Builder<SourcedConfigurationOptions>
A builder for
SourcedConfigurationOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.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()
location
(ConfigurationSource location) Sets the value ofSourcedConfigurationOptions.getLocation()
Sets the value ofConfigurationOptions.getName()
retrievalRole
(IRole retrievalRole) Sets the value ofSourcedConfigurationOptions.getRetrievalRole()
type
(ConfigurationType type) Sets the value ofConfigurationOptions.getType()
validators
(List<? extends IValidator> validators) Sets the value ofConfigurationOptions.getValidators()
versionNumber
(String versionNumber) Sets the value ofSourcedConfigurationOptions.getVersionNumber()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
location
@Stability(Stable) public SourcedConfigurationOptions.Builder location(ConfigurationSource location) Sets the value ofSourcedConfigurationOptions.getLocation()
- Parameters:
location
- The location where the configuration is stored. This parameter is required.- Returns:
this
-
retrievalRole
Sets the value ofSourcedConfigurationOptions.getRetrievalRole()
- Parameters:
retrievalRole
- The IAM role to retrieve the configuration.- Returns:
this
-
versionNumber
Sets the value ofSourcedConfigurationOptions.getVersionNumber()
- Parameters:
versionNumber
- The version number of the sourced configuration to deploy. If this is not specified, then there will be no deployment.- Returns:
this
-
deploymentKey
Sets the value ofConfigurationOptions.getDeploymentKey()
- Parameters:
deploymentKey
- The deployment key of the configuration.- Returns:
this
-
deploymentStrategy
@Stability(Stable) public SourcedConfigurationOptions.Builder deploymentStrategy(IDeploymentStrategy deploymentStrategy) Sets the value ofConfigurationOptions.getDeploymentStrategy()
- Parameters:
deploymentStrategy
- The deployment strategy for the configuration.- Returns:
this
-
deployTo
@Stability(Stable) public SourcedConfigurationOptions.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 SourcedConfigurationOptions.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<SourcedConfigurationOptions>
- Returns:
- a new instance of
SourcedConfigurationOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-