/* * 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; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StopDeploymentResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The ID of the application that was deployed. *

*/ private String applicationId; /** *

* The ID of the environment that was deployed. *

*/ private String environmentId; /** *

* The ID of the deployment strategy that was deployed. *

*/ private String deploymentStrategyId; /** *

* The ID of the configuration profile that was deployed. *

*/ private String configurationProfileId; /** *

* The sequence number of the deployment. *

*/ private Integer deploymentNumber; /** *

* The name of the configuration. *

*/ private String configurationName; /** *

* Information about the source location of the configuration. *

*/ private String configurationLocationUri; /** *

* The configuration version that was deployed. *

*/ private String configurationVersion; /** *

* The description of the deployment. *

*/ private String description; /** *

* Total amount of time the deployment lasted. *

*/ private Integer deploymentDurationInMinutes; /** *

* The algorithm used to define how percentage grew over time. *

*/ private String growthType; /** *

* The percentage of targets to receive a deployed configuration during each interval. *

*/ private Float growthFactor; /** *

* The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no * longer eligible for automatic rollback. *

*/ private Integer finalBakeTimeInMinutes; /** *

* The state of the deployment. *

*/ private String state; /** *

* A list containing all events related to a deployment. The most recent events are displayed first. *

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

* The percentage of targets for which the deployment is available. *

*/ private Float percentageComplete; /** *

* The time the deployment started. *

*/ private java.util.Date startedAt; /** *

* The time the deployment completed. *

*/ private java.util.Date completedAt; /** *

* A list of extensions that were processed as part of the deployment. The extensions that were previously * associated to the configuration profile, environment, or the application when StartDeployment was * called. *

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

* The Amazon Resource Name of the Key Management Service key used to encrypt configuration data. You can encrypt * secrets stored in Secrets Manager, Amazon Simple Storage Service (Amazon S3) objects encrypted with SSE-KMS, or * secure string parameters stored in Amazon Web Services Systems Manager Parameter Store. *

*/ private String kmsKeyArn; /** *

* The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this ID to encrypt the configuration data * using a customer managed key. *

*/ private String kmsKeyIdentifier; /** *

* The ID of the application that was deployed. *

* * @param applicationId * The ID of the application that was deployed. */ public void setApplicationId(String applicationId) { this.applicationId = applicationId; } /** *

* The ID of the application that was deployed. *

* * @return The ID of the application that was deployed. */ public String getApplicationId() { return this.applicationId; } /** *

* The ID of the application that was deployed. *

* * @param applicationId * The ID of the application that was deployed. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** *

* The ID of the environment that was deployed. *

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

* The ID of the environment that was deployed. *

* * @return The ID of the environment that was deployed. */ public String getEnvironmentId() { return this.environmentId; } /** *

* The ID of the environment that was deployed. *

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

* The ID of the deployment strategy that was deployed. *

* * @param deploymentStrategyId * The ID of the deployment strategy that was deployed. */ public void setDeploymentStrategyId(String deploymentStrategyId) { this.deploymentStrategyId = deploymentStrategyId; } /** *

* The ID of the deployment strategy that was deployed. *

* * @return The ID of the deployment strategy that was deployed. */ public String getDeploymentStrategyId() { return this.deploymentStrategyId; } /** *

* The ID of the deployment strategy that was deployed. *

* * @param deploymentStrategyId * The ID of the deployment strategy that was deployed. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withDeploymentStrategyId(String deploymentStrategyId) { setDeploymentStrategyId(deploymentStrategyId); return this; } /** *

* The ID of the configuration profile that was deployed. *

* * @param configurationProfileId * The ID of the configuration profile that was deployed. */ public void setConfigurationProfileId(String configurationProfileId) { this.configurationProfileId = configurationProfileId; } /** *

* The ID of the configuration profile that was deployed. *

* * @return The ID of the configuration profile that was deployed. */ public String getConfigurationProfileId() { return this.configurationProfileId; } /** *

* The ID of the configuration profile that was deployed. *

* * @param configurationProfileId * The ID of the configuration profile that was deployed. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withConfigurationProfileId(String configurationProfileId) { setConfigurationProfileId(configurationProfileId); return this; } /** *

* The sequence number of the deployment. *

* * @param deploymentNumber * The sequence number of the deployment. */ public void setDeploymentNumber(Integer deploymentNumber) { this.deploymentNumber = deploymentNumber; } /** *

* The sequence number of the deployment. *

* * @return The sequence number of the deployment. */ public Integer getDeploymentNumber() { return this.deploymentNumber; } /** *

* The sequence number of the deployment. *

* * @param deploymentNumber * The sequence number of the deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withDeploymentNumber(Integer deploymentNumber) { setDeploymentNumber(deploymentNumber); return this; } /** *

* The name of the configuration. *

* * @param configurationName * The name of the configuration. */ public void setConfigurationName(String configurationName) { this.configurationName = configurationName; } /** *

* The name of the configuration. *

* * @return The name of the configuration. */ public String getConfigurationName() { return this.configurationName; } /** *

* The name of the configuration. *

* * @param configurationName * The name of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withConfigurationName(String configurationName) { setConfigurationName(configurationName); return this; } /** *

* Information about the source location of the configuration. *

* * @param configurationLocationUri * Information about the source location of the configuration. */ public void setConfigurationLocationUri(String configurationLocationUri) { this.configurationLocationUri = configurationLocationUri; } /** *

* Information about the source location of the configuration. *

* * @return Information about the source location of the configuration. */ public String getConfigurationLocationUri() { return this.configurationLocationUri; } /** *

* Information about the source location of the configuration. *

* * @param configurationLocationUri * Information about the source location of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withConfigurationLocationUri(String configurationLocationUri) { setConfigurationLocationUri(configurationLocationUri); return this; } /** *

* The configuration version that was deployed. *

* * @param configurationVersion * The configuration version that was deployed. */ public void setConfigurationVersion(String configurationVersion) { this.configurationVersion = configurationVersion; } /** *

* The configuration version that was deployed. *

* * @return The configuration version that was deployed. */ public String getConfigurationVersion() { return this.configurationVersion; } /** *

* The configuration version that was deployed. *

* * @param configurationVersion * The configuration version that was deployed. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withConfigurationVersion(String configurationVersion) { setConfigurationVersion(configurationVersion); return this; } /** *

* The description of the deployment. *

* * @param description * The description of the deployment. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the deployment. *

* * @return The description of the deployment. */ public String getDescription() { return this.description; } /** *

* The description of the deployment. *

* * @param description * The description of the deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withDescription(String description) { setDescription(description); return this; } /** *

* Total amount of time the deployment lasted. *

* * @param deploymentDurationInMinutes * Total amount of time the deployment lasted. */ public void setDeploymentDurationInMinutes(Integer deploymentDurationInMinutes) { this.deploymentDurationInMinutes = deploymentDurationInMinutes; } /** *

* Total amount of time the deployment lasted. *

* * @return Total amount of time the deployment lasted. */ public Integer getDeploymentDurationInMinutes() { return this.deploymentDurationInMinutes; } /** *

* Total amount of time the deployment lasted. *

* * @param deploymentDurationInMinutes * Total amount of time the deployment lasted. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withDeploymentDurationInMinutes(Integer deploymentDurationInMinutes) { setDeploymentDurationInMinutes(deploymentDurationInMinutes); return this; } /** *

* The algorithm used to define how percentage grew over time. *

* * @param growthType * The algorithm used to define how percentage grew over time. * @see GrowthType */ public void setGrowthType(String growthType) { this.growthType = growthType; } /** *

* The algorithm used to define how percentage grew over time. *

* * @return The algorithm used to define how percentage grew over time. * @see GrowthType */ public String getGrowthType() { return this.growthType; } /** *

* The algorithm used to define how percentage grew over time. *

* * @param growthType * The algorithm used to define how percentage grew over time. * @return Returns a reference to this object so that method calls can be chained together. * @see GrowthType */ public StopDeploymentResult withGrowthType(String growthType) { setGrowthType(growthType); return this; } /** *

* The algorithm used to define how percentage grew over time. *

* * @param growthType * The algorithm used to define how percentage grew over time. * @return Returns a reference to this object so that method calls can be chained together. * @see GrowthType */ public StopDeploymentResult withGrowthType(GrowthType growthType) { this.growthType = growthType.toString(); return this; } /** *

* The percentage of targets to receive a deployed configuration during each interval. *

* * @param growthFactor * The percentage of targets to receive a deployed configuration during each interval. */ public void setGrowthFactor(Float growthFactor) { this.growthFactor = growthFactor; } /** *

* The percentage of targets to receive a deployed configuration during each interval. *

* * @return The percentage of targets to receive a deployed configuration during each interval. */ public Float getGrowthFactor() { return this.growthFactor; } /** *

* The percentage of targets to receive a deployed configuration during each interval. *

* * @param growthFactor * The percentage of targets to receive a deployed configuration during each interval. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withGrowthFactor(Float growthFactor) { setGrowthFactor(growthFactor); return this; } /** *

* The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no * longer eligible for automatic rollback. *

* * @param finalBakeTimeInMinutes * The amount of time that AppConfig monitored for alarms before considering the deployment to be complete * and no longer eligible for automatic rollback. */ public void setFinalBakeTimeInMinutes(Integer finalBakeTimeInMinutes) { this.finalBakeTimeInMinutes = finalBakeTimeInMinutes; } /** *

* The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no * longer eligible for automatic rollback. *

* * @return The amount of time that AppConfig monitored for alarms before considering the deployment to be complete * and no longer eligible for automatic rollback. */ public Integer getFinalBakeTimeInMinutes() { return this.finalBakeTimeInMinutes; } /** *

* The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no * longer eligible for automatic rollback. *

* * @param finalBakeTimeInMinutes * The amount of time that AppConfig monitored for alarms before considering the deployment to be complete * and no longer eligible for automatic rollback. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withFinalBakeTimeInMinutes(Integer finalBakeTimeInMinutes) { setFinalBakeTimeInMinutes(finalBakeTimeInMinutes); return this; } /** *

* The state of the deployment. *

* * @param state * The state of the deployment. * @see DeploymentState */ public void setState(String state) { this.state = state; } /** *

* The state of the deployment. *

* * @return The state of the deployment. * @see DeploymentState */ public String getState() { return this.state; } /** *

* The state of the deployment. *

* * @param state * The state of the deployment. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentState */ public StopDeploymentResult withState(String state) { setState(state); return this; } /** *

* The state of the deployment. *

* * @param state * The state of the deployment. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentState */ public StopDeploymentResult withState(DeploymentState state) { this.state = state.toString(); return this; } /** *

* A list containing all events related to a deployment. The most recent events are displayed first. *

* * @return A list containing all events related to a deployment. The most recent events are displayed first. */ public java.util.List getEventLog() { return eventLog; } /** *

* A list containing all events related to a deployment. The most recent events are displayed first. *

* * @param eventLog * A list containing all events related to a deployment. The most recent events are displayed first. */ public void setEventLog(java.util.Collection eventLog) { if (eventLog == null) { this.eventLog = null; return; } this.eventLog = new java.util.ArrayList(eventLog); } /** *

* A list containing all events related to a deployment. The most recent events are displayed first. *

*

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

* * @param eventLog * A list containing all events related to a deployment. The most recent events are displayed first. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withEventLog(DeploymentEvent... eventLog) { if (this.eventLog == null) { setEventLog(new java.util.ArrayList(eventLog.length)); } for (DeploymentEvent ele : eventLog) { this.eventLog.add(ele); } return this; } /** *

* A list containing all events related to a deployment. The most recent events are displayed first. *

* * @param eventLog * A list containing all events related to a deployment. The most recent events are displayed first. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withEventLog(java.util.Collection eventLog) { setEventLog(eventLog); return this; } /** *

* The percentage of targets for which the deployment is available. *

* * @param percentageComplete * The percentage of targets for which the deployment is available. */ public void setPercentageComplete(Float percentageComplete) { this.percentageComplete = percentageComplete; } /** *

* The percentage of targets for which the deployment is available. *

* * @return The percentage of targets for which the deployment is available. */ public Float getPercentageComplete() { return this.percentageComplete; } /** *

* The percentage of targets for which the deployment is available. *

* * @param percentageComplete * The percentage of targets for which the deployment is available. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withPercentageComplete(Float percentageComplete) { setPercentageComplete(percentageComplete); return this; } /** *

* The time the deployment started. *

* * @param startedAt * The time the deployment started. */ public void setStartedAt(java.util.Date startedAt) { this.startedAt = startedAt; } /** *

* The time the deployment started. *

* * @return The time the deployment started. */ public java.util.Date getStartedAt() { return this.startedAt; } /** *

* The time the deployment started. *

* * @param startedAt * The time the deployment started. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withStartedAt(java.util.Date startedAt) { setStartedAt(startedAt); return this; } /** *

* The time the deployment completed. *

* * @param completedAt * The time the deployment completed. */ public void setCompletedAt(java.util.Date completedAt) { this.completedAt = completedAt; } /** *

* The time the deployment completed. *

* * @return The time the deployment completed. */ public java.util.Date getCompletedAt() { return this.completedAt; } /** *

* The time the deployment completed. *

* * @param completedAt * The time the deployment completed. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withCompletedAt(java.util.Date completedAt) { setCompletedAt(completedAt); return this; } /** *

* A list of extensions that were processed as part of the deployment. The extensions that were previously * associated to the configuration profile, environment, or the application when StartDeployment was * called. *

* * @return A list of extensions that were processed as part of the deployment. The extensions that were previously * associated to the configuration profile, environment, or the application when * StartDeployment was called. */ public java.util.List getAppliedExtensions() { return appliedExtensions; } /** *

* A list of extensions that were processed as part of the deployment. The extensions that were previously * associated to the configuration profile, environment, or the application when StartDeployment was * called. *

* * @param appliedExtensions * A list of extensions that were processed as part of the deployment. The extensions that were previously * associated to the configuration profile, environment, or the application when StartDeployment * was called. */ public void setAppliedExtensions(java.util.Collection appliedExtensions) { if (appliedExtensions == null) { this.appliedExtensions = null; return; } this.appliedExtensions = new java.util.ArrayList(appliedExtensions); } /** *

* A list of extensions that were processed as part of the deployment. The extensions that were previously * associated to the configuration profile, environment, or the application when StartDeployment was * called. *

*

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

* * @param appliedExtensions * A list of extensions that were processed as part of the deployment. The extensions that were previously * associated to the configuration profile, environment, or the application when StartDeployment * was called. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withAppliedExtensions(AppliedExtension... appliedExtensions) { if (this.appliedExtensions == null) { setAppliedExtensions(new java.util.ArrayList(appliedExtensions.length)); } for (AppliedExtension ele : appliedExtensions) { this.appliedExtensions.add(ele); } return this; } /** *

* A list of extensions that were processed as part of the deployment. The extensions that were previously * associated to the configuration profile, environment, or the application when StartDeployment was * called. *

* * @param appliedExtensions * A list of extensions that were processed as part of the deployment. The extensions that were previously * associated to the configuration profile, environment, or the application when StartDeployment * was called. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withAppliedExtensions(java.util.Collection appliedExtensions) { setAppliedExtensions(appliedExtensions); return this; } /** *

* The Amazon Resource Name of the Key Management Service key used to encrypt configuration data. You can encrypt * secrets stored in Secrets Manager, Amazon Simple Storage Service (Amazon S3) objects encrypted with SSE-KMS, or * secure string parameters stored in Amazon Web Services Systems Manager Parameter Store. *

* * @param kmsKeyArn * The Amazon Resource Name of the Key Management Service key used to encrypt configuration data. You can * encrypt secrets stored in Secrets Manager, Amazon Simple Storage Service (Amazon S3) objects encrypted * with SSE-KMS, or secure string parameters stored in Amazon Web Services Systems Manager Parameter Store. */ public void setKmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; } /** *

* The Amazon Resource Name of the Key Management Service key used to encrypt configuration data. You can encrypt * secrets stored in Secrets Manager, Amazon Simple Storage Service (Amazon S3) objects encrypted with SSE-KMS, or * secure string parameters stored in Amazon Web Services Systems Manager Parameter Store. *

* * @return The Amazon Resource Name of the Key Management Service key used to encrypt configuration data. You can * encrypt secrets stored in Secrets Manager, Amazon Simple Storage Service (Amazon S3) objects encrypted * with SSE-KMS, or secure string parameters stored in Amazon Web Services Systems Manager Parameter Store. */ public String getKmsKeyArn() { return this.kmsKeyArn; } /** *

* The Amazon Resource Name of the Key Management Service key used to encrypt configuration data. You can encrypt * secrets stored in Secrets Manager, Amazon Simple Storage Service (Amazon S3) objects encrypted with SSE-KMS, or * secure string parameters stored in Amazon Web Services Systems Manager Parameter Store. *

* * @param kmsKeyArn * The Amazon Resource Name of the Key Management Service key used to encrypt configuration data. You can * encrypt secrets stored in Secrets Manager, Amazon Simple Storage Service (Amazon S3) objects encrypted * with SSE-KMS, or secure string parameters stored in Amazon Web Services Systems Manager Parameter Store. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withKmsKeyArn(String kmsKeyArn) { setKmsKeyArn(kmsKeyArn); return this; } /** *

* The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this ID to encrypt the configuration data * using a customer managed key. *

* * @param kmsKeyIdentifier * The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this ID to encrypt the * configuration data using a customer managed key. */ public void setKmsKeyIdentifier(String kmsKeyIdentifier) { this.kmsKeyIdentifier = kmsKeyIdentifier; } /** *

* The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this ID to encrypt the configuration data * using a customer managed key. *

* * @return The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this ID to encrypt the * configuration data using a customer managed key. */ public String getKmsKeyIdentifier() { return this.kmsKeyIdentifier; } /** *

* The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this ID to encrypt the configuration data * using a customer managed key. *

* * @param kmsKeyIdentifier * The KMS key identifier (key ID, key alias, or key ARN). AppConfig uses this ID to encrypt the * configuration data using a customer managed key. * @return Returns a reference to this object so that method calls can be chained together. */ public StopDeploymentResult withKmsKeyIdentifier(String kmsKeyIdentifier) { setKmsKeyIdentifier(kmsKeyIdentifier); 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 (getApplicationId() != null) sb.append("ApplicationId: ").append(getApplicationId()).append(","); if (getEnvironmentId() != null) sb.append("EnvironmentId: ").append(getEnvironmentId()).append(","); if (getDeploymentStrategyId() != null) sb.append("DeploymentStrategyId: ").append(getDeploymentStrategyId()).append(","); if (getConfigurationProfileId() != null) sb.append("ConfigurationProfileId: ").append(getConfigurationProfileId()).append(","); if (getDeploymentNumber() != null) sb.append("DeploymentNumber: ").append(getDeploymentNumber()).append(","); if (getConfigurationName() != null) sb.append("ConfigurationName: ").append(getConfigurationName()).append(","); if (getConfigurationLocationUri() != null) sb.append("ConfigurationLocationUri: ").append(getConfigurationLocationUri()).append(","); if (getConfigurationVersion() != null) sb.append("ConfigurationVersion: ").append(getConfigurationVersion()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getDeploymentDurationInMinutes() != null) sb.append("DeploymentDurationInMinutes: ").append(getDeploymentDurationInMinutes()).append(","); if (getGrowthType() != null) sb.append("GrowthType: ").append(getGrowthType()).append(","); if (getGrowthFactor() != null) sb.append("GrowthFactor: ").append(getGrowthFactor()).append(","); if (getFinalBakeTimeInMinutes() != null) sb.append("FinalBakeTimeInMinutes: ").append(getFinalBakeTimeInMinutes()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getEventLog() != null) sb.append("EventLog: ").append(getEventLog()).append(","); if (getPercentageComplete() != null) sb.append("PercentageComplete: ").append(getPercentageComplete()).append(","); if (getStartedAt() != null) sb.append("StartedAt: ").append(getStartedAt()).append(","); if (getCompletedAt() != null) sb.append("CompletedAt: ").append(getCompletedAt()).append(","); if (getAppliedExtensions() != null) sb.append("AppliedExtensions: ").append(getAppliedExtensions()).append(","); if (getKmsKeyArn() != null) sb.append("KmsKeyArn: ").append(getKmsKeyArn()).append(","); if (getKmsKeyIdentifier() != null) sb.append("KmsKeyIdentifier: ").append(getKmsKeyIdentifier()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StopDeploymentResult == false) return false; StopDeploymentResult other = (StopDeploymentResult) obj; if (other.getApplicationId() == null ^ this.getApplicationId() == null) return false; if (other.getApplicationId() != null && other.getApplicationId().equals(this.getApplicationId()) == 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.getDeploymentStrategyId() == null ^ this.getDeploymentStrategyId() == null) return false; if (other.getDeploymentStrategyId() != null && other.getDeploymentStrategyId().equals(this.getDeploymentStrategyId()) == false) return false; if (other.getConfigurationProfileId() == null ^ this.getConfigurationProfileId() == null) return false; if (other.getConfigurationProfileId() != null && other.getConfigurationProfileId().equals(this.getConfigurationProfileId()) == false) return false; if (other.getDeploymentNumber() == null ^ this.getDeploymentNumber() == null) return false; if (other.getDeploymentNumber() != null && other.getDeploymentNumber().equals(this.getDeploymentNumber()) == false) return false; if (other.getConfigurationName() == null ^ this.getConfigurationName() == null) return false; if (other.getConfigurationName() != null && other.getConfigurationName().equals(this.getConfigurationName()) == false) return false; if (other.getConfigurationLocationUri() == null ^ this.getConfigurationLocationUri() == null) return false; if (other.getConfigurationLocationUri() != null && other.getConfigurationLocationUri().equals(this.getConfigurationLocationUri()) == false) return false; if (other.getConfigurationVersion() == null ^ this.getConfigurationVersion() == null) return false; if (other.getConfigurationVersion() != null && other.getConfigurationVersion().equals(this.getConfigurationVersion()) == 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.getDeploymentDurationInMinutes() == null ^ this.getDeploymentDurationInMinutes() == null) return false; if (other.getDeploymentDurationInMinutes() != null && other.getDeploymentDurationInMinutes().equals(this.getDeploymentDurationInMinutes()) == false) return false; if (other.getGrowthType() == null ^ this.getGrowthType() == null) return false; if (other.getGrowthType() != null && other.getGrowthType().equals(this.getGrowthType()) == false) return false; if (other.getGrowthFactor() == null ^ this.getGrowthFactor() == null) return false; if (other.getGrowthFactor() != null && other.getGrowthFactor().equals(this.getGrowthFactor()) == false) return false; if (other.getFinalBakeTimeInMinutes() == null ^ this.getFinalBakeTimeInMinutes() == null) return false; if (other.getFinalBakeTimeInMinutes() != null && other.getFinalBakeTimeInMinutes().equals(this.getFinalBakeTimeInMinutes()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getEventLog() == null ^ this.getEventLog() == null) return false; if (other.getEventLog() != null && other.getEventLog().equals(this.getEventLog()) == false) return false; if (other.getPercentageComplete() == null ^ this.getPercentageComplete() == null) return false; if (other.getPercentageComplete() != null && other.getPercentageComplete().equals(this.getPercentageComplete()) == false) return false; if (other.getStartedAt() == null ^ this.getStartedAt() == null) return false; if (other.getStartedAt() != null && other.getStartedAt().equals(this.getStartedAt()) == false) return false; if (other.getCompletedAt() == null ^ this.getCompletedAt() == null) return false; if (other.getCompletedAt() != null && other.getCompletedAt().equals(this.getCompletedAt()) == false) return false; if (other.getAppliedExtensions() == null ^ this.getAppliedExtensions() == null) return false; if (other.getAppliedExtensions() != null && other.getAppliedExtensions().equals(this.getAppliedExtensions()) == false) return false; if (other.getKmsKeyArn() == null ^ this.getKmsKeyArn() == null) return false; if (other.getKmsKeyArn() != null && other.getKmsKeyArn().equals(this.getKmsKeyArn()) == false) return false; if (other.getKmsKeyIdentifier() == null ^ this.getKmsKeyIdentifier() == null) return false; if (other.getKmsKeyIdentifier() != null && other.getKmsKeyIdentifier().equals(this.getKmsKeyIdentifier()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationId() == null) ? 0 : getApplicationId().hashCode()); hashCode = prime * hashCode + ((getEnvironmentId() == null) ? 0 : getEnvironmentId().hashCode()); hashCode = prime * hashCode + ((getDeploymentStrategyId() == null) ? 0 : getDeploymentStrategyId().hashCode()); hashCode = prime * hashCode + ((getConfigurationProfileId() == null) ? 0 : getConfigurationProfileId().hashCode()); hashCode = prime * hashCode + ((getDeploymentNumber() == null) ? 0 : getDeploymentNumber().hashCode()); hashCode = prime * hashCode + ((getConfigurationName() == null) ? 0 : getConfigurationName().hashCode()); hashCode = prime * hashCode + ((getConfigurationLocationUri() == null) ? 0 : getConfigurationLocationUri().hashCode()); hashCode = prime * hashCode + ((getConfigurationVersion() == null) ? 0 : getConfigurationVersion().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDeploymentDurationInMinutes() == null) ? 0 : getDeploymentDurationInMinutes().hashCode()); hashCode = prime * hashCode + ((getGrowthType() == null) ? 0 : getGrowthType().hashCode()); hashCode = prime * hashCode + ((getGrowthFactor() == null) ? 0 : getGrowthFactor().hashCode()); hashCode = prime * hashCode + ((getFinalBakeTimeInMinutes() == null) ? 0 : getFinalBakeTimeInMinutes().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getEventLog() == null) ? 0 : getEventLog().hashCode()); hashCode = prime * hashCode + ((getPercentageComplete() == null) ? 0 : getPercentageComplete().hashCode()); hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode()); hashCode = prime * hashCode + ((getCompletedAt() == null) ? 0 : getCompletedAt().hashCode()); hashCode = prime * hashCode + ((getAppliedExtensions() == null) ? 0 : getAppliedExtensions().hashCode()); hashCode = prime * hashCode + ((getKmsKeyArn() == null) ? 0 : getKmsKeyArn().hashCode()); hashCode = prime * hashCode + ((getKmsKeyIdentifier() == null) ? 0 : getKmsKeyIdentifier().hashCode()); return hashCode; } @Override public StopDeploymentResult clone() { try { return (StopDeploymentResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }