Class EnvironmentOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appconfig.EnvironmentOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EnvironmentOptions>
- Enclosing interface:
EnvironmentOptions
@Stability(Stable)
public static final class EnvironmentOptions.Builder
extends Object
implements software.amazon.jsii.Builder<EnvironmentOptions>
A builder for
EnvironmentOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()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
-
deletionProtectionCheck
@Stability(Stable) public EnvironmentOptions.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<EnvironmentOptions>- Returns:
- a new instance of
EnvironmentOptions - Throws:
NullPointerException- if any required attribute was not provided
-