/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.appconfig.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateEnvironmentRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The application ID. *
*/ private String applicationId; /** ** A name for the environment. *
*/ private String name; /** ** A description of the environment. *
*/ private String description; /** ** Amazon CloudWatch alarms to monitor during the deployment process. *
*/ private java.util.List* Metadata to assign to the environment. Tags help organize and categorize your AppConfig resources. Each tag * consists of a key and an optional value, both of which you define. *
*/ private java.util.Map* The application ID. *
* * @param applicationId * The application ID. */ public void setApplicationId(String applicationId) { this.applicationId = applicationId; } /** ** The application ID. *
* * @return The application ID. */ public String getApplicationId() { return this.applicationId; } /** ** The application ID. *
* * @param applicationId * The application ID. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** ** A name for the environment. *
* * @param name * A name for the environment. */ public void setName(String name) { this.name = name; } /** ** A name for the environment. *
* * @return A name for the environment. */ public String getName() { return this.name; } /** ** A name for the environment. *
* * @param name * A name for the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withName(String name) { setName(name); return this; } /** ** A description of the environment. *
* * @param description * A description of the environment. */ public void setDescription(String description) { this.description = description; } /** ** A description of the environment. *
* * @return A description of the environment. */ public String getDescription() { return this.description; } /** ** A description of the environment. *
* * @param description * A description of the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withDescription(String description) { setDescription(description); return this; } /** ** Amazon CloudWatch alarms to monitor during the deployment process. *
* * @return Amazon CloudWatch alarms to monitor during the deployment process. */ public java.util.List* Amazon CloudWatch alarms to monitor during the deployment process. *
* * @param monitors * Amazon CloudWatch alarms to monitor during the deployment process. */ public void setMonitors(java.util.Collection* Amazon CloudWatch alarms to monitor during the deployment process. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMonitors(java.util.Collection)} or {@link #withMonitors(java.util.Collection)} if you want to override * the existing values. *
* * @param monitors * Amazon CloudWatch alarms to monitor during the deployment process. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withMonitors(Monitor... monitors) { if (this.monitors == null) { setMonitors(new java.util.ArrayList* Amazon CloudWatch alarms to monitor during the deployment process. *
* * @param monitors * Amazon CloudWatch alarms to monitor during the deployment process. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withMonitors(java.util.Collection* Metadata to assign to the environment. Tags help organize and categorize your AppConfig resources. Each tag * consists of a key and an optional value, both of which you define. *
* * @return Metadata to assign to the environment. Tags help organize and categorize your AppConfig resources. Each * tag consists of a key and an optional value, both of which you define. */ public java.util.Map* Metadata to assign to the environment. Tags help organize and categorize your AppConfig resources. Each tag * consists of a key and an optional value, both of which you define. *
* * @param tags * Metadata to assign to the environment. Tags help organize and categorize your AppConfig resources. Each * tag consists of a key and an optional value, both of which you define. */ public void setTags(java.util.Map* Metadata to assign to the environment. Tags help organize and categorize your AppConfig resources. Each tag * consists of a key and an optional value, both of which you define. *
* * @param tags * Metadata to assign to the environment. Tags help organize and categorize your AppConfig resources. Each * tag consists of a key and an optional value, both of which you define. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withTags(java.util.Map