/* * 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; /** *
* Describes the AWS resources in use by this environment. This data is live. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EnvironmentResourceDescription implements Serializable, Cloneable { /** ** The name of the environment. *
*/ private String environmentName; /** *
* The AutoScalingGroups
used by this environment.
*
* The Amazon EC2 instances used by this environment. *
*/ private com.amazonaws.internal.SdkInternalList* The Auto Scaling launch configurations in use by this environment. *
*/ private com.amazonaws.internal.SdkInternalList* The Amazon EC2 launch templates in use by this environment. *
*/ private com.amazonaws.internal.SdkInternalList* The LoadBalancers in use by this environment. *
*/ private com.amazonaws.internal.SdkInternalList
* The AutoScaling
triggers in use by this environment.
*
* The queues used by this environment. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the environment. *
* * @param environmentName * The name of the environment. */ public void setEnvironmentName(String environmentName) { this.environmentName = environmentName; } /** ** The name of the environment. *
* * @return The name of the environment. */ public String getEnvironmentName() { return this.environmentName; } /** ** The name of the environment. *
* * @param environmentName * The name of the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withEnvironmentName(String environmentName) { setEnvironmentName(environmentName); return this; } /** *
* The AutoScalingGroups
used by this environment.
*
AutoScalingGroups
used by this environment.
*/
public java.util.List
* The AutoScalingGroups
used by this environment.
*
AutoScalingGroups
used by this environment.
*/
public void setAutoScalingGroups(java.util.Collection
* The AutoScalingGroups
used by this environment.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAutoScalingGroups(java.util.Collection)} or {@link #withAutoScalingGroups(java.util.Collection)} if * you want to override the existing values. *
* * @param autoScalingGroups * TheAutoScalingGroups
used by this environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EnvironmentResourceDescription withAutoScalingGroups(AutoScalingGroup... autoScalingGroups) {
if (this.autoScalingGroups == null) {
setAutoScalingGroups(new com.amazonaws.internal.SdkInternalList
* The AutoScalingGroups
used by this environment.
*
AutoScalingGroups
used by this environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EnvironmentResourceDescription withAutoScalingGroups(java.util.Collection* The Amazon EC2 instances used by this environment. *
* * @return The Amazon EC2 instances used by this environment. */ public java.util.List* The Amazon EC2 instances used by this environment. *
* * @param instances * The Amazon EC2 instances used by this environment. */ public void setInstances(java.util.Collection* The Amazon EC2 instances used by this environment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInstances(java.util.Collection)} or {@link #withInstances(java.util.Collection)} if you want to * override the existing values. *
* * @param instances * The Amazon EC2 instances used by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withInstances(Instance... instances) { if (this.instances == null) { setInstances(new com.amazonaws.internal.SdkInternalList* The Amazon EC2 instances used by this environment. *
* * @param instances * The Amazon EC2 instances used by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withInstances(java.util.Collection* The Auto Scaling launch configurations in use by this environment. *
* * @return The Auto Scaling launch configurations in use by this environment. */ public java.util.List* The Auto Scaling launch configurations in use by this environment. *
* * @param launchConfigurations * The Auto Scaling launch configurations in use by this environment. */ public void setLaunchConfigurations(java.util.Collection* The Auto Scaling launch configurations in use by this environment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLaunchConfigurations(java.util.Collection)} or {@link #withLaunchConfigurations(java.util.Collection)} * if you want to override the existing values. *
* * @param launchConfigurations * The Auto Scaling launch configurations in use by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withLaunchConfigurations(LaunchConfiguration... launchConfigurations) { if (this.launchConfigurations == null) { setLaunchConfigurations(new com.amazonaws.internal.SdkInternalList* The Auto Scaling launch configurations in use by this environment. *
* * @param launchConfigurations * The Auto Scaling launch configurations in use by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withLaunchConfigurations(java.util.Collection* The Amazon EC2 launch templates in use by this environment. *
* * @return The Amazon EC2 launch templates in use by this environment. */ public java.util.List* The Amazon EC2 launch templates in use by this environment. *
* * @param launchTemplates * The Amazon EC2 launch templates in use by this environment. */ public void setLaunchTemplates(java.util.Collection* The Amazon EC2 launch templates in use by this environment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLaunchTemplates(java.util.Collection)} or {@link #withLaunchTemplates(java.util.Collection)} if you * want to override the existing values. *
* * @param launchTemplates * The Amazon EC2 launch templates in use by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withLaunchTemplates(LaunchTemplate... launchTemplates) { if (this.launchTemplates == null) { setLaunchTemplates(new com.amazonaws.internal.SdkInternalList* The Amazon EC2 launch templates in use by this environment. *
* * @param launchTemplates * The Amazon EC2 launch templates in use by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withLaunchTemplates(java.util.Collection* The LoadBalancers in use by this environment. *
* * @return The LoadBalancers in use by this environment. */ public java.util.List* The LoadBalancers in use by this environment. *
* * @param loadBalancers * The LoadBalancers in use by this environment. */ public void setLoadBalancers(java.util.Collection* The LoadBalancers in use by this environment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLoadBalancers(java.util.Collection)} or {@link #withLoadBalancers(java.util.Collection)} if you want * to override the existing values. *
* * @param loadBalancers * The LoadBalancers in use by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withLoadBalancers(LoadBalancer... loadBalancers) { if (this.loadBalancers == null) { setLoadBalancers(new com.amazonaws.internal.SdkInternalList* The LoadBalancers in use by this environment. *
* * @param loadBalancers * The LoadBalancers in use by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withLoadBalancers(java.util.Collection
* The AutoScaling
triggers in use by this environment.
*
AutoScaling
triggers in use by this environment.
*/
public java.util.List
* The AutoScaling
triggers in use by this environment.
*
AutoScaling
triggers in use by this environment.
*/
public void setTriggers(java.util.Collection
* The AutoScaling
triggers in use by this environment.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTriggers(java.util.Collection)} or {@link #withTriggers(java.util.Collection)} if you want to override * the existing values. *
* * @param triggers * TheAutoScaling
triggers in use by this environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EnvironmentResourceDescription withTriggers(Trigger... triggers) {
if (this.triggers == null) {
setTriggers(new com.amazonaws.internal.SdkInternalList
* The AutoScaling
triggers in use by this environment.
*
AutoScaling
triggers in use by this environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EnvironmentResourceDescription withTriggers(java.util.Collection* The queues used by this environment. *
* * @return The queues used by this environment. */ public java.util.List* The queues used by this environment. *
* * @param queues * The queues used by this environment. */ public void setQueues(java.util.Collection* The queues used by this environment. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setQueues(java.util.Collection)} or {@link #withQueues(java.util.Collection)} if you want to override the * existing values. *
* * @param queues * The queues used by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withQueues(Queue... queues) { if (this.queues == null) { setQueues(new com.amazonaws.internal.SdkInternalList* The queues used by this environment. *
* * @param queues * The queues used by this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public EnvironmentResourceDescription withQueues(java.util.Collection