Class EnvironmentAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.appconfig.EnvironmentAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EnvironmentAttributes>
- Enclosing interface:
EnvironmentAttributes
@Stability(Stable)
public static final class EnvironmentAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<EnvironmentAttributes>
A builder for
EnvironmentAttributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplication
(IApplication application) Sets the value ofEnvironmentAttributes.getApplication()
build()
Builds the configured instance.description
(String description) Sets the value ofEnvironmentAttributes.getDescription()
environmentId
(String environmentId) Sets the value ofEnvironmentAttributes.getEnvironmentId()
Sets the value ofEnvironmentAttributes.getMonitors()
Sets the value ofEnvironmentAttributes.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
application
Sets the value ofEnvironmentAttributes.getApplication()
- Parameters:
application
- The application associated with the environment. This parameter is required.- Returns:
this
-
environmentId
Sets the value ofEnvironmentAttributes.getEnvironmentId()
- Parameters:
environmentId
- The ID of the environment. This parameter is required.- Returns:
this
-
description
Sets the value ofEnvironmentAttributes.getDescription()
- Parameters:
description
- The description of the environment.- Returns:
this
-
monitors
Sets the value ofEnvironmentAttributes.getMonitors()
- Parameters:
monitors
- The monitors for the environment.- Returns:
this
-
name
Sets the value ofEnvironmentAttributes.getName()
- Parameters:
name
- The name of the environment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EnvironmentAttributes>
- Returns:
- a new instance of
EnvironmentAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-