/* * 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.elasticbeanstalk.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Request to create or update a group of environments. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ComposeEnvironmentsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The name of the application to which the specified source bundles belong. *
*/ private String applicationName; /** ** The name of the group to which the target environments belong. Specify a group name only if the environment name * defined in each target environment's manifest ends with a + (plus) character. See Environment Manifest * (env.yaml) for details. *
*/ private String groupName; /** ** A list of version labels, specifying one or more application source bundles that belong to the target * application. Each source bundle must include an environment manifest that specifies the name of the environment * and the name of the solution stack to use, and optionally can specify environment links to create. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the application to which the specified source bundles belong. *
* * @param applicationName * The name of the application to which the specified source bundles belong. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** ** The name of the application to which the specified source bundles belong. *
* * @return The name of the application to which the specified source bundles belong. */ public String getApplicationName() { return this.applicationName; } /** ** The name of the application to which the specified source bundles belong. *
* * @param applicationName * The name of the application to which the specified source bundles belong. * @return Returns a reference to this object so that method calls can be chained together. */ public ComposeEnvironmentsRequest withApplicationName(String applicationName) { setApplicationName(applicationName); return this; } /** ** The name of the group to which the target environments belong. Specify a group name only if the environment name * defined in each target environment's manifest ends with a + (plus) character. See Environment Manifest * (env.yaml) for details. *
* * @param groupName * The name of the group to which the target environments belong. Specify a group name only if the * environment name defined in each target environment's manifest ends with a + (plus) character. See Environment * Manifest (env.yaml) for details. */ public void setGroupName(String groupName) { this.groupName = groupName; } /** ** The name of the group to which the target environments belong. Specify a group name only if the environment name * defined in each target environment's manifest ends with a + (plus) character. See Environment Manifest * (env.yaml) for details. *
* * @return The name of the group to which the target environments belong. Specify a group name only if the * environment name defined in each target environment's manifest ends with a + (plus) character. See Environment * Manifest (env.yaml) for details. */ public String getGroupName() { return this.groupName; } /** ** The name of the group to which the target environments belong. Specify a group name only if the environment name * defined in each target environment's manifest ends with a + (plus) character. See Environment Manifest * (env.yaml) for details. *
* * @param groupName * The name of the group to which the target environments belong. Specify a group name only if the * environment name defined in each target environment's manifest ends with a + (plus) character. See Environment * Manifest (env.yaml) for details. * @return Returns a reference to this object so that method calls can be chained together. */ public ComposeEnvironmentsRequest withGroupName(String groupName) { setGroupName(groupName); return this; } /** ** A list of version labels, specifying one or more application source bundles that belong to the target * application. Each source bundle must include an environment manifest that specifies the name of the environment * and the name of the solution stack to use, and optionally can specify environment links to create. *
* * @return A list of version labels, specifying one or more application source bundles that belong to the target * application. Each source bundle must include an environment manifest that specifies the name of the * environment and the name of the solution stack to use, and optionally can specify environment links to * create. */ public java.util.List* A list of version labels, specifying one or more application source bundles that belong to the target * application. Each source bundle must include an environment manifest that specifies the name of the environment * and the name of the solution stack to use, and optionally can specify environment links to create. *
* * @param versionLabels * A list of version labels, specifying one or more application source bundles that belong to the target * application. Each source bundle must include an environment manifest that specifies the name of the * environment and the name of the solution stack to use, and optionally can specify environment links to * create. */ public void setVersionLabels(java.util.Collection* A list of version labels, specifying one or more application source bundles that belong to the target * application. Each source bundle must include an environment manifest that specifies the name of the environment * and the name of the solution stack to use, and optionally can specify environment links to create. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVersionLabels(java.util.Collection)} or {@link #withVersionLabels(java.util.Collection)} if you want * to override the existing values. *
* * @param versionLabels * A list of version labels, specifying one or more application source bundles that belong to the target * application. Each source bundle must include an environment manifest that specifies the name of the * environment and the name of the solution stack to use, and optionally can specify environment links to * create. * @return Returns a reference to this object so that method calls can be chained together. */ public ComposeEnvironmentsRequest withVersionLabels(String... versionLabels) { if (this.versionLabels == null) { setVersionLabels(new com.amazonaws.internal.SdkInternalList* A list of version labels, specifying one or more application source bundles that belong to the target * application. Each source bundle must include an environment manifest that specifies the name of the environment * and the name of the solution stack to use, and optionally can specify environment links to create. *
* * @param versionLabels * A list of version labels, specifying one or more application source bundles that belong to the target * application. Each source bundle must include an environment manifest that specifies the name of the * environment and the name of the solution stack to use, and optionally can specify environment links to * create. * @return Returns a reference to this object so that method calls can be chained together. */ public ComposeEnvironmentsRequest withVersionLabels(java.util.Collection