
com.amazonaws.services.proton.model.Environment Maven / Gradle / Ivy
/*
* Copyright 2019-2024 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.proton.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Detailed data of an Proton environment resource. An Proton environment is a set of resources shared across Proton
* services.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class Environment implements Serializable, Cloneable, StructuredPojo {
/**
*
* The Amazon Resource Name (ARN) of the environment.
*
*/
private String arn;
/**
*
* The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using
* CodeBuild-based provisioning on your behalf.
*
*/
private String codebuildRoleArn;
/**
*
* The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined
* components in this environment. It determines the scope of infrastructure that a component can provision.
*
*
* The environment must have a componentRoleArn
to allow directly defined components to be associated
* with the environment.
*
*
* For more information about components, see Proton components in the
* Proton User Guide.
*
*/
private String componentRoleArn;
/**
*
* The time when the environment was created.
*
*/
private java.util.Date createdAt;
/**
*
* The environment deployment status.
*
*/
private String deploymentStatus;
/**
*
* An environment deployment status message.
*
*/
private String deploymentStatusMessage;
/**
*
* The description of the environment.
*
*/
private String description;
/**
*
* The ID of the environment account connection that's used to provision infrastructure resources in an environment
* account.
*
*/
private String environmentAccountConnectionId;
/**
*
* The ID of the environment account that the environment infrastructure resources are provisioned in.
*
*/
private String environmentAccountId;
/**
*
* The ID of the last attempted deployment of this environment.
*
*/
private String lastAttemptedDeploymentId;
/**
*
* The time when a deployment of the environment was last attempted.
*
*/
private java.util.Date lastDeploymentAttemptedAt;
/**
*
* The time when the environment was last deployed successfully.
*
*/
private java.util.Date lastDeploymentSucceededAt;
/**
*
* The ID of the last successful deployment of this environment.
*
*/
private String lastSucceededDeploymentId;
/**
*
* The name of the environment.
*
*/
private String name;
/**
*
* The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on
* your behalf.
*
*/
private String protonServiceRoleArn;
/**
*
* When included, indicates that the environment template is for customer provisioned and managed infrastructure.
*
*/
private String provisioning;
/**
*
* The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning.
* A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
*
*/
private RepositoryBranch provisioningRepository;
/**
*
* The environment spec.
*
*/
private String spec;
/**
*
* The major version of the environment template.
*
*/
private String templateMajorVersion;
/**
*
* The minor version of the environment template.
*
*/
private String templateMinorVersion;
/**
*
* The Amazon Resource Name (ARN) of the environment template.
*
*/
private String templateName;
/**
*
* The Amazon Resource Name (ARN) of the environment.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the environment.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The Amazon Resource Name (ARN) of the environment.
*
*
* @return The Amazon Resource Name (ARN) of the environment.
*/
public String getArn() {
return this.arn;
}
/**
*
* The Amazon Resource Name (ARN) of the environment.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using
* CodeBuild-based provisioning on your behalf.
*
*
* @param codebuildRoleArn
* The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure
* using CodeBuild-based provisioning on your behalf.
*/
public void setCodebuildRoleArn(String codebuildRoleArn) {
this.codebuildRoleArn = codebuildRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using
* CodeBuild-based provisioning on your behalf.
*
*
* @return The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure
* using CodeBuild-based provisioning on your behalf.
*/
public String getCodebuildRoleArn() {
return this.codebuildRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using
* CodeBuild-based provisioning on your behalf.
*
*
* @param codebuildRoleArn
* The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure
* using CodeBuild-based provisioning on your behalf.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withCodebuildRoleArn(String codebuildRoleArn) {
setCodebuildRoleArn(codebuildRoleArn);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined
* components in this environment. It determines the scope of infrastructure that a component can provision.
*
*
* The environment must have a componentRoleArn
to allow directly defined components to be associated
* with the environment.
*
*
* For more information about components, see Proton components in the
* Proton User Guide.
*
*
* @param componentRoleArn
* The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined
* components in this environment. It determines the scope of infrastructure that a component can
* provision.
*
* The environment must have a componentRoleArn
to allow directly defined components to be
* associated with the environment.
*
*
* For more information about components, see Proton components in the
* Proton User Guide.
*/
public void setComponentRoleArn(String componentRoleArn) {
this.componentRoleArn = componentRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined
* components in this environment. It determines the scope of infrastructure that a component can provision.
*
*
* The environment must have a componentRoleArn
to allow directly defined components to be associated
* with the environment.
*
*
* For more information about components, see Proton components in the
* Proton User Guide.
*
*
* @return The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly
* defined components in this environment. It determines the scope of infrastructure that a component can
* provision.
*
* The environment must have a componentRoleArn
to allow directly defined components to be
* associated with the environment.
*
*
* For more information about components, see Proton components in
* the Proton User Guide.
*/
public String getComponentRoleArn() {
return this.componentRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined
* components in this environment. It determines the scope of infrastructure that a component can provision.
*
*
* The environment must have a componentRoleArn
to allow directly defined components to be associated
* with the environment.
*
*
* For more information about components, see Proton components in the
* Proton User Guide.
*
*
* @param componentRoleArn
* The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined
* components in this environment. It determines the scope of infrastructure that a component can
* provision.
*
* The environment must have a componentRoleArn
to allow directly defined components to be
* associated with the environment.
*
*
* For more information about components, see Proton components in the
* Proton User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withComponentRoleArn(String componentRoleArn) {
setComponentRoleArn(componentRoleArn);
return this;
}
/**
*
* The time when the environment was created.
*
*
* @param createdAt
* The time when the environment was created.
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
*
* The time when the environment was created.
*
*
* @return The time when the environment was created.
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
*
* The time when the environment was created.
*
*
* @param createdAt
* The time when the environment was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
*
* The environment deployment status.
*
*
* @param deploymentStatus
* The environment deployment status.
* @see DeploymentStatus
*/
public void setDeploymentStatus(String deploymentStatus) {
this.deploymentStatus = deploymentStatus;
}
/**
*
* The environment deployment status.
*
*
* @return The environment deployment status.
* @see DeploymentStatus
*/
public String getDeploymentStatus() {
return this.deploymentStatus;
}
/**
*
* The environment deployment status.
*
*
* @param deploymentStatus
* The environment deployment status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DeploymentStatus
*/
public Environment withDeploymentStatus(String deploymentStatus) {
setDeploymentStatus(deploymentStatus);
return this;
}
/**
*
* The environment deployment status.
*
*
* @param deploymentStatus
* The environment deployment status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DeploymentStatus
*/
public Environment withDeploymentStatus(DeploymentStatus deploymentStatus) {
this.deploymentStatus = deploymentStatus.toString();
return this;
}
/**
*
* An environment deployment status message.
*
*
* @param deploymentStatusMessage
* An environment deployment status message.
*/
public void setDeploymentStatusMessage(String deploymentStatusMessage) {
this.deploymentStatusMessage = deploymentStatusMessage;
}
/**
*
* An environment deployment status message.
*
*
* @return An environment deployment status message.
*/
public String getDeploymentStatusMessage() {
return this.deploymentStatusMessage;
}
/**
*
* An environment deployment status message.
*
*
* @param deploymentStatusMessage
* An environment deployment status message.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withDeploymentStatusMessage(String deploymentStatusMessage) {
setDeploymentStatusMessage(deploymentStatusMessage);
return this;
}
/**
*
* The description of the environment.
*
*
* @param description
* The description of the environment.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description of the environment.
*
*
* @return The description of the environment.
*/
public String getDescription() {
return this.description;
}
/**
*
* The description of the environment.
*
*
* @param description
* The description of the environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The ID of the environment account connection that's used to provision infrastructure resources in an environment
* account.
*
*
* @param environmentAccountConnectionId
* The ID of the environment account connection that's used to provision infrastructure resources in an
* environment account.
*/
public void setEnvironmentAccountConnectionId(String environmentAccountConnectionId) {
this.environmentAccountConnectionId = environmentAccountConnectionId;
}
/**
*
* The ID of the environment account connection that's used to provision infrastructure resources in an environment
* account.
*
*
* @return The ID of the environment account connection that's used to provision infrastructure resources in an
* environment account.
*/
public String getEnvironmentAccountConnectionId() {
return this.environmentAccountConnectionId;
}
/**
*
* The ID of the environment account connection that's used to provision infrastructure resources in an environment
* account.
*
*
* @param environmentAccountConnectionId
* The ID of the environment account connection that's used to provision infrastructure resources in an
* environment account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withEnvironmentAccountConnectionId(String environmentAccountConnectionId) {
setEnvironmentAccountConnectionId(environmentAccountConnectionId);
return this;
}
/**
*
* The ID of the environment account that the environment infrastructure resources are provisioned in.
*
*
* @param environmentAccountId
* The ID of the environment account that the environment infrastructure resources are provisioned in.
*/
public void setEnvironmentAccountId(String environmentAccountId) {
this.environmentAccountId = environmentAccountId;
}
/**
*
* The ID of the environment account that the environment infrastructure resources are provisioned in.
*
*
* @return The ID of the environment account that the environment infrastructure resources are provisioned in.
*/
public String getEnvironmentAccountId() {
return this.environmentAccountId;
}
/**
*
* The ID of the environment account that the environment infrastructure resources are provisioned in.
*
*
* @param environmentAccountId
* The ID of the environment account that the environment infrastructure resources are provisioned in.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withEnvironmentAccountId(String environmentAccountId) {
setEnvironmentAccountId(environmentAccountId);
return this;
}
/**
*
* The ID of the last attempted deployment of this environment.
*
*
* @param lastAttemptedDeploymentId
* The ID of the last attempted deployment of this environment.
*/
public void setLastAttemptedDeploymentId(String lastAttemptedDeploymentId) {
this.lastAttemptedDeploymentId = lastAttemptedDeploymentId;
}
/**
*
* The ID of the last attempted deployment of this environment.
*
*
* @return The ID of the last attempted deployment of this environment.
*/
public String getLastAttemptedDeploymentId() {
return this.lastAttemptedDeploymentId;
}
/**
*
* The ID of the last attempted deployment of this environment.
*
*
* @param lastAttemptedDeploymentId
* The ID of the last attempted deployment of this environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withLastAttemptedDeploymentId(String lastAttemptedDeploymentId) {
setLastAttemptedDeploymentId(lastAttemptedDeploymentId);
return this;
}
/**
*
* The time when a deployment of the environment was last attempted.
*
*
* @param lastDeploymentAttemptedAt
* The time when a deployment of the environment was last attempted.
*/
public void setLastDeploymentAttemptedAt(java.util.Date lastDeploymentAttemptedAt) {
this.lastDeploymentAttemptedAt = lastDeploymentAttemptedAt;
}
/**
*
* The time when a deployment of the environment was last attempted.
*
*
* @return The time when a deployment of the environment was last attempted.
*/
public java.util.Date getLastDeploymentAttemptedAt() {
return this.lastDeploymentAttemptedAt;
}
/**
*
* The time when a deployment of the environment was last attempted.
*
*
* @param lastDeploymentAttemptedAt
* The time when a deployment of the environment was last attempted.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withLastDeploymentAttemptedAt(java.util.Date lastDeploymentAttemptedAt) {
setLastDeploymentAttemptedAt(lastDeploymentAttemptedAt);
return this;
}
/**
*
* The time when the environment was last deployed successfully.
*
*
* @param lastDeploymentSucceededAt
* The time when the environment was last deployed successfully.
*/
public void setLastDeploymentSucceededAt(java.util.Date lastDeploymentSucceededAt) {
this.lastDeploymentSucceededAt = lastDeploymentSucceededAt;
}
/**
*
* The time when the environment was last deployed successfully.
*
*
* @return The time when the environment was last deployed successfully.
*/
public java.util.Date getLastDeploymentSucceededAt() {
return this.lastDeploymentSucceededAt;
}
/**
*
* The time when the environment was last deployed successfully.
*
*
* @param lastDeploymentSucceededAt
* The time when the environment was last deployed successfully.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withLastDeploymentSucceededAt(java.util.Date lastDeploymentSucceededAt) {
setLastDeploymentSucceededAt(lastDeploymentSucceededAt);
return this;
}
/**
*
* The ID of the last successful deployment of this environment.
*
*
* @param lastSucceededDeploymentId
* The ID of the last successful deployment of this environment.
*/
public void setLastSucceededDeploymentId(String lastSucceededDeploymentId) {
this.lastSucceededDeploymentId = lastSucceededDeploymentId;
}
/**
*
* The ID of the last successful deployment of this environment.
*
*
* @return The ID of the last successful deployment of this environment.
*/
public String getLastSucceededDeploymentId() {
return this.lastSucceededDeploymentId;
}
/**
*
* The ID of the last successful deployment of this environment.
*
*
* @param lastSucceededDeploymentId
* The ID of the last successful deployment of this environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withLastSucceededDeploymentId(String lastSucceededDeploymentId) {
setLastSucceededDeploymentId(lastSucceededDeploymentId);
return this;
}
/**
*
* The name of the environment.
*
*
* @param name
* The name of the environment.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the environment.
*
*
* @return The name of the environment.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the environment.
*
*
* @param name
* The name of the environment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withName(String name) {
setName(name);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on
* your behalf.
*
*
* @param protonServiceRoleArn
* The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other
* services on your behalf.
*/
public void setProtonServiceRoleArn(String protonServiceRoleArn) {
this.protonServiceRoleArn = protonServiceRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on
* your behalf.
*
*
* @return The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other
* services on your behalf.
*/
public String getProtonServiceRoleArn() {
return this.protonServiceRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on
* your behalf.
*
*
* @param protonServiceRoleArn
* The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other
* services on your behalf.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withProtonServiceRoleArn(String protonServiceRoleArn) {
setProtonServiceRoleArn(protonServiceRoleArn);
return this;
}
/**
*
* When included, indicates that the environment template is for customer provisioned and managed infrastructure.
*
*
* @param provisioning
* When included, indicates that the environment template is for customer provisioned and managed
* infrastructure.
* @see Provisioning
*/
public void setProvisioning(String provisioning) {
this.provisioning = provisioning;
}
/**
*
* When included, indicates that the environment template is for customer provisioned and managed infrastructure.
*
*
* @return When included, indicates that the environment template is for customer provisioned and managed
* infrastructure.
* @see Provisioning
*/
public String getProvisioning() {
return this.provisioning;
}
/**
*
* When included, indicates that the environment template is for customer provisioned and managed infrastructure.
*
*
* @param provisioning
* When included, indicates that the environment template is for customer provisioned and managed
* infrastructure.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Provisioning
*/
public Environment withProvisioning(String provisioning) {
setProvisioning(provisioning);
return this;
}
/**
*
* When included, indicates that the environment template is for customer provisioned and managed infrastructure.
*
*
* @param provisioning
* When included, indicates that the environment template is for customer provisioned and managed
* infrastructure.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Provisioning
*/
public Environment withProvisioning(Provisioning provisioning) {
this.provisioning = provisioning.toString();
return this;
}
/**
*
* The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning.
* A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
*
*
* @param provisioningRepository
* The linked repository that you use to host your rendered infrastructure templates for self-managed
* provisioning. A linked repository is a repository that has been registered with Proton. For more
* information, see CreateRepository.
*/
public void setProvisioningRepository(RepositoryBranch provisioningRepository) {
this.provisioningRepository = provisioningRepository;
}
/**
*
* The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning.
* A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
*
*
* @return The linked repository that you use to host your rendered infrastructure templates for self-managed
* provisioning. A linked repository is a repository that has been registered with Proton. For more
* information, see CreateRepository.
*/
public RepositoryBranch getProvisioningRepository() {
return this.provisioningRepository;
}
/**
*
* The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning.
* A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
*
*
* @param provisioningRepository
* The linked repository that you use to host your rendered infrastructure templates for self-managed
* provisioning. A linked repository is a repository that has been registered with Proton. For more
* information, see CreateRepository.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withProvisioningRepository(RepositoryBranch provisioningRepository) {
setProvisioningRepository(provisioningRepository);
return this;
}
/**
*
* The environment spec.
*
*
* @param spec
* The environment spec.
*/
public void setSpec(String spec) {
this.spec = spec;
}
/**
*
* The environment spec.
*
*
* @return The environment spec.
*/
public String getSpec() {
return this.spec;
}
/**
*
* The environment spec.
*
*
* @param spec
* The environment spec.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withSpec(String spec) {
setSpec(spec);
return this;
}
/**
*
* The major version of the environment template.
*
*
* @param templateMajorVersion
* The major version of the environment template.
*/
public void setTemplateMajorVersion(String templateMajorVersion) {
this.templateMajorVersion = templateMajorVersion;
}
/**
*
* The major version of the environment template.
*
*
* @return The major version of the environment template.
*/
public String getTemplateMajorVersion() {
return this.templateMajorVersion;
}
/**
*
* The major version of the environment template.
*
*
* @param templateMajorVersion
* The major version of the environment template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withTemplateMajorVersion(String templateMajorVersion) {
setTemplateMajorVersion(templateMajorVersion);
return this;
}
/**
*
* The minor version of the environment template.
*
*
* @param templateMinorVersion
* The minor version of the environment template.
*/
public void setTemplateMinorVersion(String templateMinorVersion) {
this.templateMinorVersion = templateMinorVersion;
}
/**
*
* The minor version of the environment template.
*
*
* @return The minor version of the environment template.
*/
public String getTemplateMinorVersion() {
return this.templateMinorVersion;
}
/**
*
* The minor version of the environment template.
*
*
* @param templateMinorVersion
* The minor version of the environment template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withTemplateMinorVersion(String templateMinorVersion) {
setTemplateMinorVersion(templateMinorVersion);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the environment template.
*
*
* @param templateName
* The Amazon Resource Name (ARN) of the environment template.
*/
public void setTemplateName(String templateName) {
this.templateName = templateName;
}
/**
*
* The Amazon Resource Name (ARN) of the environment template.
*
*
* @return The Amazon Resource Name (ARN) of the environment template.
*/
public String getTemplateName() {
return this.templateName;
}
/**
*
* The Amazon Resource Name (ARN) of the environment template.
*
*
* @param templateName
* The Amazon Resource Name (ARN) of the environment template.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Environment withTemplateName(String templateName) {
setTemplateName(templateName);
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 (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getCodebuildRoleArn() != null)
sb.append("CodebuildRoleArn: ").append(getCodebuildRoleArn()).append(",");
if (getComponentRoleArn() != null)
sb.append("ComponentRoleArn: ").append(getComponentRoleArn()).append(",");
if (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getDeploymentStatus() != null)
sb.append("DeploymentStatus: ").append(getDeploymentStatus()).append(",");
if (getDeploymentStatusMessage() != null)
sb.append("DeploymentStatusMessage: ").append("***Sensitive Data Redacted***").append(",");
if (getDescription() != null)
sb.append("Description: ").append("***Sensitive Data Redacted***").append(",");
if (getEnvironmentAccountConnectionId() != null)
sb.append("EnvironmentAccountConnectionId: ").append(getEnvironmentAccountConnectionId()).append(",");
if (getEnvironmentAccountId() != null)
sb.append("EnvironmentAccountId: ").append(getEnvironmentAccountId()).append(",");
if (getLastAttemptedDeploymentId() != null)
sb.append("LastAttemptedDeploymentId: ").append(getLastAttemptedDeploymentId()).append(",");
if (getLastDeploymentAttemptedAt() != null)
sb.append("LastDeploymentAttemptedAt: ").append(getLastDeploymentAttemptedAt()).append(",");
if (getLastDeploymentSucceededAt() != null)
sb.append("LastDeploymentSucceededAt: ").append(getLastDeploymentSucceededAt()).append(",");
if (getLastSucceededDeploymentId() != null)
sb.append("LastSucceededDeploymentId: ").append(getLastSucceededDeploymentId()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getProtonServiceRoleArn() != null)
sb.append("ProtonServiceRoleArn: ").append(getProtonServiceRoleArn()).append(",");
if (getProvisioning() != null)
sb.append("Provisioning: ").append(getProvisioning()).append(",");
if (getProvisioningRepository() != null)
sb.append("ProvisioningRepository: ").append(getProvisioningRepository()).append(",");
if (getSpec() != null)
sb.append("Spec: ").append("***Sensitive Data Redacted***").append(",");
if (getTemplateMajorVersion() != null)
sb.append("TemplateMajorVersion: ").append(getTemplateMajorVersion()).append(",");
if (getTemplateMinorVersion() != null)
sb.append("TemplateMinorVersion: ").append(getTemplateMinorVersion()).append(",");
if (getTemplateName() != null)
sb.append("TemplateName: ").append(getTemplateName());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Environment == false)
return false;
Environment other = (Environment) obj;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getCodebuildRoleArn() == null ^ this.getCodebuildRoleArn() == null)
return false;
if (other.getCodebuildRoleArn() != null && other.getCodebuildRoleArn().equals(this.getCodebuildRoleArn()) == false)
return false;
if (other.getComponentRoleArn() == null ^ this.getComponentRoleArn() == null)
return false;
if (other.getComponentRoleArn() != null && other.getComponentRoleArn().equals(this.getComponentRoleArn()) == false)
return false;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
return false;
if (other.getDeploymentStatus() == null ^ this.getDeploymentStatus() == null)
return false;
if (other.getDeploymentStatus() != null && other.getDeploymentStatus().equals(this.getDeploymentStatus()) == false)
return false;
if (other.getDeploymentStatusMessage() == null ^ this.getDeploymentStatusMessage() == null)
return false;
if (other.getDeploymentStatusMessage() != null && other.getDeploymentStatusMessage().equals(this.getDeploymentStatusMessage()) == 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.getEnvironmentAccountConnectionId() == null ^ this.getEnvironmentAccountConnectionId() == null)
return false;
if (other.getEnvironmentAccountConnectionId() != null
&& other.getEnvironmentAccountConnectionId().equals(this.getEnvironmentAccountConnectionId()) == false)
return false;
if (other.getEnvironmentAccountId() == null ^ this.getEnvironmentAccountId() == null)
return false;
if (other.getEnvironmentAccountId() != null && other.getEnvironmentAccountId().equals(this.getEnvironmentAccountId()) == false)
return false;
if (other.getLastAttemptedDeploymentId() == null ^ this.getLastAttemptedDeploymentId() == null)
return false;
if (other.getLastAttemptedDeploymentId() != null && other.getLastAttemptedDeploymentId().equals(this.getLastAttemptedDeploymentId()) == false)
return false;
if (other.getLastDeploymentAttemptedAt() == null ^ this.getLastDeploymentAttemptedAt() == null)
return false;
if (other.getLastDeploymentAttemptedAt() != null && other.getLastDeploymentAttemptedAt().equals(this.getLastDeploymentAttemptedAt()) == false)
return false;
if (other.getLastDeploymentSucceededAt() == null ^ this.getLastDeploymentSucceededAt() == null)
return false;
if (other.getLastDeploymentSucceededAt() != null && other.getLastDeploymentSucceededAt().equals(this.getLastDeploymentSucceededAt()) == false)
return false;
if (other.getLastSucceededDeploymentId() == null ^ this.getLastSucceededDeploymentId() == null)
return false;
if (other.getLastSucceededDeploymentId() != null && other.getLastSucceededDeploymentId().equals(this.getLastSucceededDeploymentId()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getProtonServiceRoleArn() == null ^ this.getProtonServiceRoleArn() == null)
return false;
if (other.getProtonServiceRoleArn() != null && other.getProtonServiceRoleArn().equals(this.getProtonServiceRoleArn()) == false)
return false;
if (other.getProvisioning() == null ^ this.getProvisioning() == null)
return false;
if (other.getProvisioning() != null && other.getProvisioning().equals(this.getProvisioning()) == false)
return false;
if (other.getProvisioningRepository() == null ^ this.getProvisioningRepository() == null)
return false;
if (other.getProvisioningRepository() != null && other.getProvisioningRepository().equals(this.getProvisioningRepository()) == false)
return false;
if (other.getSpec() == null ^ this.getSpec() == null)
return false;
if (other.getSpec() != null && other.getSpec().equals(this.getSpec()) == false)
return false;
if (other.getTemplateMajorVersion() == null ^ this.getTemplateMajorVersion() == null)
return false;
if (other.getTemplateMajorVersion() != null && other.getTemplateMajorVersion().equals(this.getTemplateMajorVersion()) == false)
return false;
if (other.getTemplateMinorVersion() == null ^ this.getTemplateMinorVersion() == null)
return false;
if (other.getTemplateMinorVersion() != null && other.getTemplateMinorVersion().equals(this.getTemplateMinorVersion()) == false)
return false;
if (other.getTemplateName() == null ^ this.getTemplateName() == null)
return false;
if (other.getTemplateName() != null && other.getTemplateName().equals(this.getTemplateName()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getCodebuildRoleArn() == null) ? 0 : getCodebuildRoleArn().hashCode());
hashCode = prime * hashCode + ((getComponentRoleArn() == null) ? 0 : getComponentRoleArn().hashCode());
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getDeploymentStatus() == null) ? 0 : getDeploymentStatus().hashCode());
hashCode = prime * hashCode + ((getDeploymentStatusMessage() == null) ? 0 : getDeploymentStatusMessage().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getEnvironmentAccountConnectionId() == null) ? 0 : getEnvironmentAccountConnectionId().hashCode());
hashCode = prime * hashCode + ((getEnvironmentAccountId() == null) ? 0 : getEnvironmentAccountId().hashCode());
hashCode = prime * hashCode + ((getLastAttemptedDeploymentId() == null) ? 0 : getLastAttemptedDeploymentId().hashCode());
hashCode = prime * hashCode + ((getLastDeploymentAttemptedAt() == null) ? 0 : getLastDeploymentAttemptedAt().hashCode());
hashCode = prime * hashCode + ((getLastDeploymentSucceededAt() == null) ? 0 : getLastDeploymentSucceededAt().hashCode());
hashCode = prime * hashCode + ((getLastSucceededDeploymentId() == null) ? 0 : getLastSucceededDeploymentId().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getProtonServiceRoleArn() == null) ? 0 : getProtonServiceRoleArn().hashCode());
hashCode = prime * hashCode + ((getProvisioning() == null) ? 0 : getProvisioning().hashCode());
hashCode = prime * hashCode + ((getProvisioningRepository() == null) ? 0 : getProvisioningRepository().hashCode());
hashCode = prime * hashCode + ((getSpec() == null) ? 0 : getSpec().hashCode());
hashCode = prime * hashCode + ((getTemplateMajorVersion() == null) ? 0 : getTemplateMajorVersion().hashCode());
hashCode = prime * hashCode + ((getTemplateMinorVersion() == null) ? 0 : getTemplateMinorVersion().hashCode());
hashCode = prime * hashCode + ((getTemplateName() == null) ? 0 : getTemplateName().hashCode());
return hashCode;
}
@Override
public Environment clone() {
try {
return (Environment) 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.proton.model.transform.EnvironmentMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}