Class EnvironmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.appconfig.EnvironmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EnvironmentProps>
- Enclosing interface:
EnvironmentProps
@Stability(Stable)
public static final class EnvironmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<EnvironmentProps>
A builder for
EnvironmentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplication(IApplication application) Sets the value ofEnvironmentProps.getApplication()build()Builds the configured instance.deletionProtectionCheck(DeletionProtectionCheck deletionProtectionCheck) Sets the value ofEnvironmentOptions.getDeletionProtectionCheck()description(String description) Sets the value ofEnvironmentOptions.getDescription()environmentName(String environmentName) Sets the value ofEnvironmentOptions.getEnvironmentName()Sets the value ofEnvironmentOptions.getMonitors()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
application
Sets the value ofEnvironmentProps.getApplication()- Parameters:
application- The application to be associated with the environment. This parameter is required.- Returns:
this
-
deletionProtectionCheck
@Stability(Stable) public EnvironmentProps.Builder deletionProtectionCheck(DeletionProtectionCheck deletionProtectionCheck) Sets the value ofEnvironmentOptions.getDeletionProtectionCheck()- Parameters:
deletionProtectionCheck- A property to prevent accidental deletion of active environments.- Returns:
this
-
description
Sets the value ofEnvironmentOptions.getDescription()- Parameters:
description- The description of the environment.- Returns:
this
-
environmentName
Sets the value ofEnvironmentOptions.getEnvironmentName()- Parameters:
environmentName- The name of the environment.- Returns:
this
-
monitors
Sets the value ofEnvironmentOptions.getMonitors()- Parameters:
monitors- The monitors for the environment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EnvironmentProps>- Returns:
- a new instance of
EnvironmentProps - Throws:
NullPointerException- if any required attribute was not provided
-