All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.securityhub.model.AwsElasticBeanstalkEnvironmentDetails Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS SecurityHub module holds the client classes that are used for communicating with AWS SecurityHub Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2016-2021 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.securityhub.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Contains details about an Elastic Beanstalk environment. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsElasticBeanstalkEnvironmentDetails implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the application that is associated with the environment. *

*/ private String applicationName; /** *

* The URL to the CNAME for this environment. *

*/ private String cname; /** *

* The creation date for this environment. *

*/ private String dateCreated; /** *

* The date when this environment was last modified. *

*/ private String dateUpdated; /** *

* A description of the environment. *

*/ private String description; /** *

* For load-balanced, autoscaling environments, the URL to the load balancer. For single-instance environments, the * IP address of the instance. *

*/ private String endpointUrl; /** *

* The ARN of the environment. *

*/ private String environmentArn; /** *

* The identifier of the environment. *

*/ private String environmentId; /** *

* Links to other environments in the same group. *

*/ private java.util.List environmentLinks; /** *

* The name of the environment. *

*/ private String environmentName; /** *

* The configuration setting for the environment. *

*/ private java.util.List optionSettings; /** *

* The ARN of the platform version for the environment. *

*/ private String platformArn; /** *

* The name of the solution stack that is deployed with the environment. *

*/ private String solutionStackName; /** *

* The current operational status of the environment. *

*/ private String status; /** *

* The tier of the environment. *

*/ private AwsElasticBeanstalkEnvironmentTier tier; /** *

* The application version of the environment. *

*/ private String versionLabel; /** *

* The name of the application that is associated with the environment. *

* * @param applicationName * The name of the application that is associated with the environment. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** *

* The name of the application that is associated with the environment. *

* * @return The name of the application that is associated with the environment. */ public String getApplicationName() { return this.applicationName; } /** *

* The name of the application that is associated with the environment. *

* * @param applicationName * The name of the application that is associated with the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withApplicationName(String applicationName) { setApplicationName(applicationName); return this; } /** *

* The URL to the CNAME for this environment. *

* * @param cname * The URL to the CNAME for this environment. */ public void setCname(String cname) { this.cname = cname; } /** *

* The URL to the CNAME for this environment. *

* * @return The URL to the CNAME for this environment. */ public String getCname() { return this.cname; } /** *

* The URL to the CNAME for this environment. *

* * @param cname * The URL to the CNAME for this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withCname(String cname) { setCname(cname); return this; } /** *

* The creation date for this environment. *

* * @param dateCreated * The creation date for this environment. */ public void setDateCreated(String dateCreated) { this.dateCreated = dateCreated; } /** *

* The creation date for this environment. *

* * @return The creation date for this environment. */ public String getDateCreated() { return this.dateCreated; } /** *

* The creation date for this environment. *

* * @param dateCreated * The creation date for this environment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withDateCreated(String dateCreated) { setDateCreated(dateCreated); return this; } /** *

* The date when this environment was last modified. *

* * @param dateUpdated * The date when this environment was last modified. */ public void setDateUpdated(String dateUpdated) { this.dateUpdated = dateUpdated; } /** *

* The date when this environment was last modified. *

* * @return The date when this environment was last modified. */ public String getDateUpdated() { return this.dateUpdated; } /** *

* The date when this environment was last modified. *

* * @param dateUpdated * The date when this environment was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withDateUpdated(String dateUpdated) { setDateUpdated(dateUpdated); 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 AwsElasticBeanstalkEnvironmentDetails withDescription(String description) { setDescription(description); return this; } /** *

* For load-balanced, autoscaling environments, the URL to the load balancer. For single-instance environments, the * IP address of the instance. *

* * @param endpointUrl * For load-balanced, autoscaling environments, the URL to the load balancer. For single-instance * environments, the IP address of the instance. */ public void setEndpointUrl(String endpointUrl) { this.endpointUrl = endpointUrl; } /** *

* For load-balanced, autoscaling environments, the URL to the load balancer. For single-instance environments, the * IP address of the instance. *

* * @return For load-balanced, autoscaling environments, the URL to the load balancer. For single-instance * environments, the IP address of the instance. */ public String getEndpointUrl() { return this.endpointUrl; } /** *

* For load-balanced, autoscaling environments, the URL to the load balancer. For single-instance environments, the * IP address of the instance. *

* * @param endpointUrl * For load-balanced, autoscaling environments, the URL to the load balancer. For single-instance * environments, the IP address of the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withEndpointUrl(String endpointUrl) { setEndpointUrl(endpointUrl); return this; } /** *

* The ARN of the environment. *

* * @param environmentArn * The ARN of the environment. */ public void setEnvironmentArn(String environmentArn) { this.environmentArn = environmentArn; } /** *

* The ARN of the environment. *

* * @return The ARN of the environment. */ public String getEnvironmentArn() { return this.environmentArn; } /** *

* The ARN of the environment. *

* * @param environmentArn * The ARN of the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withEnvironmentArn(String environmentArn) { setEnvironmentArn(environmentArn); return this; } /** *

* The identifier of the environment. *

* * @param environmentId * The identifier of the environment. */ public void setEnvironmentId(String environmentId) { this.environmentId = environmentId; } /** *

* The identifier of the environment. *

* * @return The identifier of the environment. */ public String getEnvironmentId() { return this.environmentId; } /** *

* The identifier of the environment. *

* * @param environmentId * The identifier of the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withEnvironmentId(String environmentId) { setEnvironmentId(environmentId); return this; } /** *

* Links to other environments in the same group. *

* * @return Links to other environments in the same group. */ public java.util.List getEnvironmentLinks() { return environmentLinks; } /** *

* Links to other environments in the same group. *

* * @param environmentLinks * Links to other environments in the same group. */ public void setEnvironmentLinks(java.util.Collection environmentLinks) { if (environmentLinks == null) { this.environmentLinks = null; return; } this.environmentLinks = new java.util.ArrayList(environmentLinks); } /** *

* Links to other environments in the same group. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setEnvironmentLinks(java.util.Collection)} or {@link #withEnvironmentLinks(java.util.Collection)} if you * want to override the existing values. *

* * @param environmentLinks * Links to other environments in the same group. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withEnvironmentLinks(AwsElasticBeanstalkEnvironmentEnvironmentLink... environmentLinks) { if (this.environmentLinks == null) { setEnvironmentLinks(new java.util.ArrayList(environmentLinks.length)); } for (AwsElasticBeanstalkEnvironmentEnvironmentLink ele : environmentLinks) { this.environmentLinks.add(ele); } return this; } /** *

* Links to other environments in the same group. *

* * @param environmentLinks * Links to other environments in the same group. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withEnvironmentLinks(java.util.Collection environmentLinks) { setEnvironmentLinks(environmentLinks); return this; } /** *

* 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 AwsElasticBeanstalkEnvironmentDetails withEnvironmentName(String environmentName) { setEnvironmentName(environmentName); return this; } /** *

* The configuration setting for the environment. *

* * @return The configuration setting for the environment. */ public java.util.List getOptionSettings() { return optionSettings; } /** *

* The configuration setting for the environment. *

* * @param optionSettings * The configuration setting for the environment. */ public void setOptionSettings(java.util.Collection optionSettings) { if (optionSettings == null) { this.optionSettings = null; return; } this.optionSettings = new java.util.ArrayList(optionSettings); } /** *

* The configuration setting for the environment. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setOptionSettings(java.util.Collection)} or {@link #withOptionSettings(java.util.Collection)} if you want * to override the existing values. *

* * @param optionSettings * The configuration setting for the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withOptionSettings(AwsElasticBeanstalkEnvironmentOptionSetting... optionSettings) { if (this.optionSettings == null) { setOptionSettings(new java.util.ArrayList(optionSettings.length)); } for (AwsElasticBeanstalkEnvironmentOptionSetting ele : optionSettings) { this.optionSettings.add(ele); } return this; } /** *

* The configuration setting for the environment. *

* * @param optionSettings * The configuration setting for the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withOptionSettings(java.util.Collection optionSettings) { setOptionSettings(optionSettings); return this; } /** *

* The ARN of the platform version for the environment. *

* * @param platformArn * The ARN of the platform version for the environment. */ public void setPlatformArn(String platformArn) { this.platformArn = platformArn; } /** *

* The ARN of the platform version for the environment. *

* * @return The ARN of the platform version for the environment. */ public String getPlatformArn() { return this.platformArn; } /** *

* The ARN of the platform version for the environment. *

* * @param platformArn * The ARN of the platform version for the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withPlatformArn(String platformArn) { setPlatformArn(platformArn); return this; } /** *

* The name of the solution stack that is deployed with the environment. *

* * @param solutionStackName * The name of the solution stack that is deployed with the environment. */ public void setSolutionStackName(String solutionStackName) { this.solutionStackName = solutionStackName; } /** *

* The name of the solution stack that is deployed with the environment. *

* * @return The name of the solution stack that is deployed with the environment. */ public String getSolutionStackName() { return this.solutionStackName; } /** *

* The name of the solution stack that is deployed with the environment. *

* * @param solutionStackName * The name of the solution stack that is deployed with the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withSolutionStackName(String solutionStackName) { setSolutionStackName(solutionStackName); return this; } /** *

* The current operational status of the environment. *

* * @param status * The current operational status of the environment. */ public void setStatus(String status) { this.status = status; } /** *

* The current operational status of the environment. *

* * @return The current operational status of the environment. */ public String getStatus() { return this.status; } /** *

* The current operational status of the environment. *

* * @param status * The current operational status of the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withStatus(String status) { setStatus(status); return this; } /** *

* The tier of the environment. *

* * @param tier * The tier of the environment. */ public void setTier(AwsElasticBeanstalkEnvironmentTier tier) { this.tier = tier; } /** *

* The tier of the environment. *

* * @return The tier of the environment. */ public AwsElasticBeanstalkEnvironmentTier getTier() { return this.tier; } /** *

* The tier of the environment. *

* * @param tier * The tier of the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withTier(AwsElasticBeanstalkEnvironmentTier tier) { setTier(tier); return this; } /** *

* The application version of the environment. *

* * @param versionLabel * The application version of the environment. */ public void setVersionLabel(String versionLabel) { this.versionLabel = versionLabel; } /** *

* The application version of the environment. *

* * @return The application version of the environment. */ public String getVersionLabel() { return this.versionLabel; } /** *

* The application version of the environment. *

* * @param versionLabel * The application version of the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsElasticBeanstalkEnvironmentDetails withVersionLabel(String versionLabel) { setVersionLabel(versionLabel); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getApplicationName() != null) sb.append("ApplicationName: ").append(getApplicationName()).append(","); if (getCname() != null) sb.append("Cname: ").append(getCname()).append(","); if (getDateCreated() != null) sb.append("DateCreated: ").append(getDateCreated()).append(","); if (getDateUpdated() != null) sb.append("DateUpdated: ").append(getDateUpdated()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getEndpointUrl() != null) sb.append("EndpointUrl: ").append(getEndpointUrl()).append(","); if (getEnvironmentArn() != null) sb.append("EnvironmentArn: ").append(getEnvironmentArn()).append(","); if (getEnvironmentId() != null) sb.append("EnvironmentId: ").append(getEnvironmentId()).append(","); if (getEnvironmentLinks() != null) sb.append("EnvironmentLinks: ").append(getEnvironmentLinks()).append(","); if (getEnvironmentName() != null) sb.append("EnvironmentName: ").append(getEnvironmentName()).append(","); if (getOptionSettings() != null) sb.append("OptionSettings: ").append(getOptionSettings()).append(","); if (getPlatformArn() != null) sb.append("PlatformArn: ").append(getPlatformArn()).append(","); if (getSolutionStackName() != null) sb.append("SolutionStackName: ").append(getSolutionStackName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getTier() != null) sb.append("Tier: ").append(getTier()).append(","); if (getVersionLabel() != null) sb.append("VersionLabel: ").append(getVersionLabel()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AwsElasticBeanstalkEnvironmentDetails == false) return false; AwsElasticBeanstalkEnvironmentDetails other = (AwsElasticBeanstalkEnvironmentDetails) obj; if (other.getApplicationName() == null ^ this.getApplicationName() == null) return false; if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == false) return false; if (other.getCname() == null ^ this.getCname() == null) return false; if (other.getCname() != null && other.getCname().equals(this.getCname()) == false) return false; if (other.getDateCreated() == null ^ this.getDateCreated() == null) return false; if (other.getDateCreated() != null && other.getDateCreated().equals(this.getDateCreated()) == false) return false; if (other.getDateUpdated() == null ^ this.getDateUpdated() == null) return false; if (other.getDateUpdated() != null && other.getDateUpdated().equals(this.getDateUpdated()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getEndpointUrl() == null ^ this.getEndpointUrl() == null) return false; if (other.getEndpointUrl() != null && other.getEndpointUrl().equals(this.getEndpointUrl()) == false) return false; if (other.getEnvironmentArn() == null ^ this.getEnvironmentArn() == null) return false; if (other.getEnvironmentArn() != null && other.getEnvironmentArn().equals(this.getEnvironmentArn()) == false) return false; if (other.getEnvironmentId() == null ^ this.getEnvironmentId() == null) return false; if (other.getEnvironmentId() != null && other.getEnvironmentId().equals(this.getEnvironmentId()) == false) return false; if (other.getEnvironmentLinks() == null ^ this.getEnvironmentLinks() == null) return false; if (other.getEnvironmentLinks() != null && other.getEnvironmentLinks().equals(this.getEnvironmentLinks()) == false) return false; if (other.getEnvironmentName() == null ^ this.getEnvironmentName() == null) return false; if (other.getEnvironmentName() != null && other.getEnvironmentName().equals(this.getEnvironmentName()) == false) return false; if (other.getOptionSettings() == null ^ this.getOptionSettings() == null) return false; if (other.getOptionSettings() != null && other.getOptionSettings().equals(this.getOptionSettings()) == false) return false; if (other.getPlatformArn() == null ^ this.getPlatformArn() == null) return false; if (other.getPlatformArn() != null && other.getPlatformArn().equals(this.getPlatformArn()) == false) return false; if (other.getSolutionStackName() == null ^ this.getSolutionStackName() == null) return false; if (other.getSolutionStackName() != null && other.getSolutionStackName().equals(this.getSolutionStackName()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getTier() == null ^ this.getTier() == null) return false; if (other.getTier() != null && other.getTier().equals(this.getTier()) == false) return false; if (other.getVersionLabel() == null ^ this.getVersionLabel() == null) return false; if (other.getVersionLabel() != null && other.getVersionLabel().equals(this.getVersionLabel()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationName() == null) ? 0 : getApplicationName().hashCode()); hashCode = prime * hashCode + ((getCname() == null) ? 0 : getCname().hashCode()); hashCode = prime * hashCode + ((getDateCreated() == null) ? 0 : getDateCreated().hashCode()); hashCode = prime * hashCode + ((getDateUpdated() == null) ? 0 : getDateUpdated().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getEndpointUrl() == null) ? 0 : getEndpointUrl().hashCode()); hashCode = prime * hashCode + ((getEnvironmentArn() == null) ? 0 : getEnvironmentArn().hashCode()); hashCode = prime * hashCode + ((getEnvironmentId() == null) ? 0 : getEnvironmentId().hashCode()); hashCode = prime * hashCode + ((getEnvironmentLinks() == null) ? 0 : getEnvironmentLinks().hashCode()); hashCode = prime * hashCode + ((getEnvironmentName() == null) ? 0 : getEnvironmentName().hashCode()); hashCode = prime * hashCode + ((getOptionSettings() == null) ? 0 : getOptionSettings().hashCode()); hashCode = prime * hashCode + ((getPlatformArn() == null) ? 0 : getPlatformArn().hashCode()); hashCode = prime * hashCode + ((getSolutionStackName() == null) ? 0 : getSolutionStackName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getTier() == null) ? 0 : getTier().hashCode()); hashCode = prime * hashCode + ((getVersionLabel() == null) ? 0 : getVersionLabel().hashCode()); return hashCode; } @Override public AwsElasticBeanstalkEnvironmentDetails clone() { try { return (AwsElasticBeanstalkEnvironmentDetails) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.securityhub.model.transform.AwsElasticBeanstalkEnvironmentDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy