com.amazonaws.services.cloudformation.model.StackSetDriftDetectionDetails Maven / Gradle / Ivy
Show all versions of aws-java-sdk-cloudformation Show documentation
/*
* 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.cloudformation.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* Detailed information about the drift status of the stack set.
*
*
* For stack sets, contains information about the last completed drift operation performed on the stack set.
* Information about drift operations in-progress isn't included.
*
*
* For stack set operations, includes information about drift operations currently being performed on the stack set.
*
*
* For more information, see Detecting unmanaged
* changes in stack sets in the CloudFormation User Guide.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class StackSetDriftDetectionDetails implements Serializable, Cloneable {
/**
*
* Status of the stack set's actual configuration compared to its expected template and parameter configuration. A
* stack set is considered to have drifted if one or more of its stack instances have drifted from their expected
* template and parameter configuration.
*
*
* -
*
* DRIFTED
: One or more of the stack instances belonging to the stack set stack differs from the
* expected template and parameter configuration. A stack instance is considered to have drifted if one or more of
* the resources in the associated stack have drifted.
*
*
* -
*
* NOT_CHECKED
: CloudFormation hasn't checked the stack set for drift.
*
*
* -
*
* IN_SYNC
: All of the stack instances belonging to the stack set stack match from the expected
* template and parameter configuration.
*
*
*
*/
private String driftStatus;
/**
*
* The status of the stack set drift detection operation.
*
*
* -
*
* COMPLETED
: The drift detection operation completed without failing on any stack instances.
*
*
* -
*
* FAILED
: The drift detection operation exceeded the specified failure tolerance.
*
*
* -
*
* PARTIAL_SUCCESS
: The drift detection operation completed without exceeding the failure tolerance for
* the operation.
*
*
* -
*
* IN_PROGRESS
: The drift detection operation is currently being performed.
*
*
* -
*
* STOPPED
: The user has canceled the drift detection operation.
*
*
*
*/
private String driftDetectionStatus;
/**
*
* Most recent time when CloudFormation performed a drift detection operation on the stack set. This value will be
* NULL
for any stack set on which drift detection hasn't yet been performed.
*
*/
private java.util.Date lastDriftCheckTimestamp;
/**
*
* The total number of stack instances belonging to this stack set.
*
*
* The total number of stack instances is equal to the total of:
*
*
* -
*
* Stack instances that match the stack set configuration.
*
*
* -
*
* Stack instances that have drifted from the stack set configuration.
*
*
* -
*
* Stack instances where the drift detection operation has failed.
*
*
* -
*
* Stack instances currently being checked for drift.
*
*
*
*/
private Integer totalStackInstancesCount;
/**
*
* The number of stack instances that have drifted from the expected template and parameter configuration of the
* stack set. A stack instance is considered to have drifted if one or more of the resources in the associated stack
* don't match their expected configuration.
*
*/
private Integer driftedStackInstancesCount;
/**
*
* The number of stack instances which match the expected template and parameter configuration of the stack set.
*
*/
private Integer inSyncStackInstancesCount;
/**
*
* The number of stack instances that are currently being checked for drift.
*
*/
private Integer inProgressStackInstancesCount;
/**
*
* The number of stack instances for which the drift detection operation failed.
*
*/
private Integer failedStackInstancesCount;
/**
*
* Status of the stack set's actual configuration compared to its expected template and parameter configuration. A
* stack set is considered to have drifted if one or more of its stack instances have drifted from their expected
* template and parameter configuration.
*
*
* -
*
* DRIFTED
: One or more of the stack instances belonging to the stack set stack differs from the
* expected template and parameter configuration. A stack instance is considered to have drifted if one or more of
* the resources in the associated stack have drifted.
*
*
* -
*
* NOT_CHECKED
: CloudFormation hasn't checked the stack set for drift.
*
*
* -
*
* IN_SYNC
: All of the stack instances belonging to the stack set stack match from the expected
* template and parameter configuration.
*
*
*
*
* @param driftStatus
* Status of the stack set's actual configuration compared to its expected template and parameter
* configuration. A stack set is considered to have drifted if one or more of its stack instances have
* drifted from their expected template and parameter configuration.
*
* -
*
* DRIFTED
: One or more of the stack instances belonging to the stack set stack differs from the
* expected template and parameter configuration. A stack instance is considered to have drifted if one or
* more of the resources in the associated stack have drifted.
*
*
* -
*
* NOT_CHECKED
: CloudFormation hasn't checked the stack set for drift.
*
*
* -
*
* IN_SYNC
: All of the stack instances belonging to the stack set stack match from the expected
* template and parameter configuration.
*
*
* @see StackSetDriftStatus
*/
public void setDriftStatus(String driftStatus) {
this.driftStatus = driftStatus;
}
/**
*
* Status of the stack set's actual configuration compared to its expected template and parameter configuration. A
* stack set is considered to have drifted if one or more of its stack instances have drifted from their expected
* template and parameter configuration.
*
*
* -
*
* DRIFTED
: One or more of the stack instances belonging to the stack set stack differs from the
* expected template and parameter configuration. A stack instance is considered to have drifted if one or more of
* the resources in the associated stack have drifted.
*
*
* -
*
* NOT_CHECKED
: CloudFormation hasn't checked the stack set for drift.
*
*
* -
*
* IN_SYNC
: All of the stack instances belonging to the stack set stack match from the expected
* template and parameter configuration.
*
*
*
*
* @return Status of the stack set's actual configuration compared to its expected template and parameter
* configuration. A stack set is considered to have drifted if one or more of its stack instances have
* drifted from their expected template and parameter configuration.
*
* -
*
* DRIFTED
: One or more of the stack instances belonging to the stack set stack differs from
* the expected template and parameter configuration. A stack instance is considered to have drifted if one
* or more of the resources in the associated stack have drifted.
*
*
* -
*
* NOT_CHECKED
: CloudFormation hasn't checked the stack set for drift.
*
*
* -
*
* IN_SYNC
: All of the stack instances belonging to the stack set stack match from the expected
* template and parameter configuration.
*
*
* @see StackSetDriftStatus
*/
public String getDriftStatus() {
return this.driftStatus;
}
/**
*
* Status of the stack set's actual configuration compared to its expected template and parameter configuration. A
* stack set is considered to have drifted if one or more of its stack instances have drifted from their expected
* template and parameter configuration.
*
*
* -
*
* DRIFTED
: One or more of the stack instances belonging to the stack set stack differs from the
* expected template and parameter configuration. A stack instance is considered to have drifted if one or more of
* the resources in the associated stack have drifted.
*
*
* -
*
* NOT_CHECKED
: CloudFormation hasn't checked the stack set for drift.
*
*
* -
*
* IN_SYNC
: All of the stack instances belonging to the stack set stack match from the expected
* template and parameter configuration.
*
*
*
*
* @param driftStatus
* Status of the stack set's actual configuration compared to its expected template and parameter
* configuration. A stack set is considered to have drifted if one or more of its stack instances have
* drifted from their expected template and parameter configuration.
*
* -
*
* DRIFTED
: One or more of the stack instances belonging to the stack set stack differs from the
* expected template and parameter configuration. A stack instance is considered to have drifted if one or
* more of the resources in the associated stack have drifted.
*
*
* -
*
* NOT_CHECKED
: CloudFormation hasn't checked the stack set for drift.
*
*
* -
*
* IN_SYNC
: All of the stack instances belonging to the stack set stack match from the expected
* template and parameter configuration.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see StackSetDriftStatus
*/
public StackSetDriftDetectionDetails withDriftStatus(String driftStatus) {
setDriftStatus(driftStatus);
return this;
}
/**
*
* Status of the stack set's actual configuration compared to its expected template and parameter configuration. A
* stack set is considered to have drifted if one or more of its stack instances have drifted from their expected
* template and parameter configuration.
*
*
* -
*
* DRIFTED
: One or more of the stack instances belonging to the stack set stack differs from the
* expected template and parameter configuration. A stack instance is considered to have drifted if one or more of
* the resources in the associated stack have drifted.
*
*
* -
*
* NOT_CHECKED
: CloudFormation hasn't checked the stack set for drift.
*
*
* -
*
* IN_SYNC
: All of the stack instances belonging to the stack set stack match from the expected
* template and parameter configuration.
*
*
*
*
* @param driftStatus
* Status of the stack set's actual configuration compared to its expected template and parameter
* configuration. A stack set is considered to have drifted if one or more of its stack instances have
* drifted from their expected template and parameter configuration.
*
* -
*
* DRIFTED
: One or more of the stack instances belonging to the stack set stack differs from the
* expected template and parameter configuration. A stack instance is considered to have drifted if one or
* more of the resources in the associated stack have drifted.
*
*
* -
*
* NOT_CHECKED
: CloudFormation hasn't checked the stack set for drift.
*
*
* -
*
* IN_SYNC
: All of the stack instances belonging to the stack set stack match from the expected
* template and parameter configuration.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see StackSetDriftStatus
*/
public StackSetDriftDetectionDetails withDriftStatus(StackSetDriftStatus driftStatus) {
this.driftStatus = driftStatus.toString();
return this;
}
/**
*
* The status of the stack set drift detection operation.
*
*
* -
*
* COMPLETED
: The drift detection operation completed without failing on any stack instances.
*
*
* -
*
* FAILED
: The drift detection operation exceeded the specified failure tolerance.
*
*
* -
*
* PARTIAL_SUCCESS
: The drift detection operation completed without exceeding the failure tolerance for
* the operation.
*
*
* -
*
* IN_PROGRESS
: The drift detection operation is currently being performed.
*
*
* -
*
* STOPPED
: The user has canceled the drift detection operation.
*
*
*
*
* @param driftDetectionStatus
* The status of the stack set drift detection operation.
*
* -
*
* COMPLETED
: The drift detection operation completed without failing on any stack instances.
*
*
* -
*
* FAILED
: The drift detection operation exceeded the specified failure tolerance.
*
*
* -
*
* PARTIAL_SUCCESS
: The drift detection operation completed without exceeding the failure
* tolerance for the operation.
*
*
* -
*
* IN_PROGRESS
: The drift detection operation is currently being performed.
*
*
* -
*
* STOPPED
: The user has canceled the drift detection operation.
*
*
* @see StackSetDriftDetectionStatus
*/
public void setDriftDetectionStatus(String driftDetectionStatus) {
this.driftDetectionStatus = driftDetectionStatus;
}
/**
*
* The status of the stack set drift detection operation.
*
*
* -
*
* COMPLETED
: The drift detection operation completed without failing on any stack instances.
*
*
* -
*
* FAILED
: The drift detection operation exceeded the specified failure tolerance.
*
*
* -
*
* PARTIAL_SUCCESS
: The drift detection operation completed without exceeding the failure tolerance for
* the operation.
*
*
* -
*
* IN_PROGRESS
: The drift detection operation is currently being performed.
*
*
* -
*
* STOPPED
: The user has canceled the drift detection operation.
*
*
*
*
* @return The status of the stack set drift detection operation.
*
* -
*
* COMPLETED
: The drift detection operation completed without failing on any stack instances.
*
*
* -
*
* FAILED
: The drift detection operation exceeded the specified failure tolerance.
*
*
* -
*
* PARTIAL_SUCCESS
: The drift detection operation completed without exceeding the failure
* tolerance for the operation.
*
*
* -
*
* IN_PROGRESS
: The drift detection operation is currently being performed.
*
*
* -
*
* STOPPED
: The user has canceled the drift detection operation.
*
*
* @see StackSetDriftDetectionStatus
*/
public String getDriftDetectionStatus() {
return this.driftDetectionStatus;
}
/**
*
* The status of the stack set drift detection operation.
*
*
* -
*
* COMPLETED
: The drift detection operation completed without failing on any stack instances.
*
*
* -
*
* FAILED
: The drift detection operation exceeded the specified failure tolerance.
*
*
* -
*
* PARTIAL_SUCCESS
: The drift detection operation completed without exceeding the failure tolerance for
* the operation.
*
*
* -
*
* IN_PROGRESS
: The drift detection operation is currently being performed.
*
*
* -
*
* STOPPED
: The user has canceled the drift detection operation.
*
*
*
*
* @param driftDetectionStatus
* The status of the stack set drift detection operation.
*
* -
*
* COMPLETED
: The drift detection operation completed without failing on any stack instances.
*
*
* -
*
* FAILED
: The drift detection operation exceeded the specified failure tolerance.
*
*
* -
*
* PARTIAL_SUCCESS
: The drift detection operation completed without exceeding the failure
* tolerance for the operation.
*
*
* -
*
* IN_PROGRESS
: The drift detection operation is currently being performed.
*
*
* -
*
* STOPPED
: The user has canceled the drift detection operation.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see StackSetDriftDetectionStatus
*/
public StackSetDriftDetectionDetails withDriftDetectionStatus(String driftDetectionStatus) {
setDriftDetectionStatus(driftDetectionStatus);
return this;
}
/**
*
* The status of the stack set drift detection operation.
*
*
* -
*
* COMPLETED
: The drift detection operation completed without failing on any stack instances.
*
*
* -
*
* FAILED
: The drift detection operation exceeded the specified failure tolerance.
*
*
* -
*
* PARTIAL_SUCCESS
: The drift detection operation completed without exceeding the failure tolerance for
* the operation.
*
*
* -
*
* IN_PROGRESS
: The drift detection operation is currently being performed.
*
*
* -
*
* STOPPED
: The user has canceled the drift detection operation.
*
*
*
*
* @param driftDetectionStatus
* The status of the stack set drift detection operation.
*
* -
*
* COMPLETED
: The drift detection operation completed without failing on any stack instances.
*
*
* -
*
* FAILED
: The drift detection operation exceeded the specified failure tolerance.
*
*
* -
*
* PARTIAL_SUCCESS
: The drift detection operation completed without exceeding the failure
* tolerance for the operation.
*
*
* -
*
* IN_PROGRESS
: The drift detection operation is currently being performed.
*
*
* -
*
* STOPPED
: The user has canceled the drift detection operation.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see StackSetDriftDetectionStatus
*/
public StackSetDriftDetectionDetails withDriftDetectionStatus(StackSetDriftDetectionStatus driftDetectionStatus) {
this.driftDetectionStatus = driftDetectionStatus.toString();
return this;
}
/**
*
* Most recent time when CloudFormation performed a drift detection operation on the stack set. This value will be
* NULL
for any stack set on which drift detection hasn't yet been performed.
*
*
* @param lastDriftCheckTimestamp
* Most recent time when CloudFormation performed a drift detection operation on the stack set. This value
* will be NULL
for any stack set on which drift detection hasn't yet been performed.
*/
public void setLastDriftCheckTimestamp(java.util.Date lastDriftCheckTimestamp) {
this.lastDriftCheckTimestamp = lastDriftCheckTimestamp;
}
/**
*
* Most recent time when CloudFormation performed a drift detection operation on the stack set. This value will be
* NULL
for any stack set on which drift detection hasn't yet been performed.
*
*
* @return Most recent time when CloudFormation performed a drift detection operation on the stack set. This value
* will be NULL
for any stack set on which drift detection hasn't yet been performed.
*/
public java.util.Date getLastDriftCheckTimestamp() {
return this.lastDriftCheckTimestamp;
}
/**
*
* Most recent time when CloudFormation performed a drift detection operation on the stack set. This value will be
* NULL
for any stack set on which drift detection hasn't yet been performed.
*
*
* @param lastDriftCheckTimestamp
* Most recent time when CloudFormation performed a drift detection operation on the stack set. This value
* will be NULL
for any stack set on which drift detection hasn't yet been performed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StackSetDriftDetectionDetails withLastDriftCheckTimestamp(java.util.Date lastDriftCheckTimestamp) {
setLastDriftCheckTimestamp(lastDriftCheckTimestamp);
return this;
}
/**
*
* The total number of stack instances belonging to this stack set.
*
*
* The total number of stack instances is equal to the total of:
*
*
* -
*
* Stack instances that match the stack set configuration.
*
*
* -
*
* Stack instances that have drifted from the stack set configuration.
*
*
* -
*
* Stack instances where the drift detection operation has failed.
*
*
* -
*
* Stack instances currently being checked for drift.
*
*
*
*
* @param totalStackInstancesCount
* The total number of stack instances belonging to this stack set.
*
* The total number of stack instances is equal to the total of:
*
*
* -
*
* Stack instances that match the stack set configuration.
*
*
* -
*
* Stack instances that have drifted from the stack set configuration.
*
*
* -
*
* Stack instances where the drift detection operation has failed.
*
*
* -
*
* Stack instances currently being checked for drift.
*
*
*/
public void setTotalStackInstancesCount(Integer totalStackInstancesCount) {
this.totalStackInstancesCount = totalStackInstancesCount;
}
/**
*
* The total number of stack instances belonging to this stack set.
*
*
* The total number of stack instances is equal to the total of:
*
*
* -
*
* Stack instances that match the stack set configuration.
*
*
* -
*
* Stack instances that have drifted from the stack set configuration.
*
*
* -
*
* Stack instances where the drift detection operation has failed.
*
*
* -
*
* Stack instances currently being checked for drift.
*
*
*
*
* @return The total number of stack instances belonging to this stack set.
*
* The total number of stack instances is equal to the total of:
*
*
* -
*
* Stack instances that match the stack set configuration.
*
*
* -
*
* Stack instances that have drifted from the stack set configuration.
*
*
* -
*
* Stack instances where the drift detection operation has failed.
*
*
* -
*
* Stack instances currently being checked for drift.
*
*
*/
public Integer getTotalStackInstancesCount() {
return this.totalStackInstancesCount;
}
/**
*
* The total number of stack instances belonging to this stack set.
*
*
* The total number of stack instances is equal to the total of:
*
*
* -
*
* Stack instances that match the stack set configuration.
*
*
* -
*
* Stack instances that have drifted from the stack set configuration.
*
*
* -
*
* Stack instances where the drift detection operation has failed.
*
*
* -
*
* Stack instances currently being checked for drift.
*
*
*
*
* @param totalStackInstancesCount
* The total number of stack instances belonging to this stack set.
*
* The total number of stack instances is equal to the total of:
*
*
* -
*
* Stack instances that match the stack set configuration.
*
*
* -
*
* Stack instances that have drifted from the stack set configuration.
*
*
* -
*
* Stack instances where the drift detection operation has failed.
*
*
* -
*
* Stack instances currently being checked for drift.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StackSetDriftDetectionDetails withTotalStackInstancesCount(Integer totalStackInstancesCount) {
setTotalStackInstancesCount(totalStackInstancesCount);
return this;
}
/**
*
* The number of stack instances that have drifted from the expected template and parameter configuration of the
* stack set. A stack instance is considered to have drifted if one or more of the resources in the associated stack
* don't match their expected configuration.
*
*
* @param driftedStackInstancesCount
* The number of stack instances that have drifted from the expected template and parameter configuration of
* the stack set. A stack instance is considered to have drifted if one or more of the resources in the
* associated stack don't match their expected configuration.
*/
public void setDriftedStackInstancesCount(Integer driftedStackInstancesCount) {
this.driftedStackInstancesCount = driftedStackInstancesCount;
}
/**
*
* The number of stack instances that have drifted from the expected template and parameter configuration of the
* stack set. A stack instance is considered to have drifted if one or more of the resources in the associated stack
* don't match their expected configuration.
*
*
* @return The number of stack instances that have drifted from the expected template and parameter configuration of
* the stack set. A stack instance is considered to have drifted if one or more of the resources in the
* associated stack don't match their expected configuration.
*/
public Integer getDriftedStackInstancesCount() {
return this.driftedStackInstancesCount;
}
/**
*
* The number of stack instances that have drifted from the expected template and parameter configuration of the
* stack set. A stack instance is considered to have drifted if one or more of the resources in the associated stack
* don't match their expected configuration.
*
*
* @param driftedStackInstancesCount
* The number of stack instances that have drifted from the expected template and parameter configuration of
* the stack set. A stack instance is considered to have drifted if one or more of the resources in the
* associated stack don't match their expected configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StackSetDriftDetectionDetails withDriftedStackInstancesCount(Integer driftedStackInstancesCount) {
setDriftedStackInstancesCount(driftedStackInstancesCount);
return this;
}
/**
*
* The number of stack instances which match the expected template and parameter configuration of the stack set.
*
*
* @param inSyncStackInstancesCount
* The number of stack instances which match the expected template and parameter configuration of the stack
* set.
*/
public void setInSyncStackInstancesCount(Integer inSyncStackInstancesCount) {
this.inSyncStackInstancesCount = inSyncStackInstancesCount;
}
/**
*
* The number of stack instances which match the expected template and parameter configuration of the stack set.
*
*
* @return The number of stack instances which match the expected template and parameter configuration of the stack
* set.
*/
public Integer getInSyncStackInstancesCount() {
return this.inSyncStackInstancesCount;
}
/**
*
* The number of stack instances which match the expected template and parameter configuration of the stack set.
*
*
* @param inSyncStackInstancesCount
* The number of stack instances which match the expected template and parameter configuration of the stack
* set.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StackSetDriftDetectionDetails withInSyncStackInstancesCount(Integer inSyncStackInstancesCount) {
setInSyncStackInstancesCount(inSyncStackInstancesCount);
return this;
}
/**
*
* The number of stack instances that are currently being checked for drift.
*
*
* @param inProgressStackInstancesCount
* The number of stack instances that are currently being checked for drift.
*/
public void setInProgressStackInstancesCount(Integer inProgressStackInstancesCount) {
this.inProgressStackInstancesCount = inProgressStackInstancesCount;
}
/**
*
* The number of stack instances that are currently being checked for drift.
*
*
* @return The number of stack instances that are currently being checked for drift.
*/
public Integer getInProgressStackInstancesCount() {
return this.inProgressStackInstancesCount;
}
/**
*
* The number of stack instances that are currently being checked for drift.
*
*
* @param inProgressStackInstancesCount
* The number of stack instances that are currently being checked for drift.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StackSetDriftDetectionDetails withInProgressStackInstancesCount(Integer inProgressStackInstancesCount) {
setInProgressStackInstancesCount(inProgressStackInstancesCount);
return this;
}
/**
*
* The number of stack instances for which the drift detection operation failed.
*
*
* @param failedStackInstancesCount
* The number of stack instances for which the drift detection operation failed.
*/
public void setFailedStackInstancesCount(Integer failedStackInstancesCount) {
this.failedStackInstancesCount = failedStackInstancesCount;
}
/**
*
* The number of stack instances for which the drift detection operation failed.
*
*
* @return The number of stack instances for which the drift detection operation failed.
*/
public Integer getFailedStackInstancesCount() {
return this.failedStackInstancesCount;
}
/**
*
* The number of stack instances for which the drift detection operation failed.
*
*
* @param failedStackInstancesCount
* The number of stack instances for which the drift detection operation failed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StackSetDriftDetectionDetails withFailedStackInstancesCount(Integer failedStackInstancesCount) {
setFailedStackInstancesCount(failedStackInstancesCount);
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 (getDriftStatus() != null)
sb.append("DriftStatus: ").append(getDriftStatus()).append(",");
if (getDriftDetectionStatus() != null)
sb.append("DriftDetectionStatus: ").append(getDriftDetectionStatus()).append(",");
if (getLastDriftCheckTimestamp() != null)
sb.append("LastDriftCheckTimestamp: ").append(getLastDriftCheckTimestamp()).append(",");
if (getTotalStackInstancesCount() != null)
sb.append("TotalStackInstancesCount: ").append(getTotalStackInstancesCount()).append(",");
if (getDriftedStackInstancesCount() != null)
sb.append("DriftedStackInstancesCount: ").append(getDriftedStackInstancesCount()).append(",");
if (getInSyncStackInstancesCount() != null)
sb.append("InSyncStackInstancesCount: ").append(getInSyncStackInstancesCount()).append(",");
if (getInProgressStackInstancesCount() != null)
sb.append("InProgressStackInstancesCount: ").append(getInProgressStackInstancesCount()).append(",");
if (getFailedStackInstancesCount() != null)
sb.append("FailedStackInstancesCount: ").append(getFailedStackInstancesCount());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof StackSetDriftDetectionDetails == false)
return false;
StackSetDriftDetectionDetails other = (StackSetDriftDetectionDetails) obj;
if (other.getDriftStatus() == null ^ this.getDriftStatus() == null)
return false;
if (other.getDriftStatus() != null && other.getDriftStatus().equals(this.getDriftStatus()) == false)
return false;
if (other.getDriftDetectionStatus() == null ^ this.getDriftDetectionStatus() == null)
return false;
if (other.getDriftDetectionStatus() != null && other.getDriftDetectionStatus().equals(this.getDriftDetectionStatus()) == false)
return false;
if (other.getLastDriftCheckTimestamp() == null ^ this.getLastDriftCheckTimestamp() == null)
return false;
if (other.getLastDriftCheckTimestamp() != null && other.getLastDriftCheckTimestamp().equals(this.getLastDriftCheckTimestamp()) == false)
return false;
if (other.getTotalStackInstancesCount() == null ^ this.getTotalStackInstancesCount() == null)
return false;
if (other.getTotalStackInstancesCount() != null && other.getTotalStackInstancesCount().equals(this.getTotalStackInstancesCount()) == false)
return false;
if (other.getDriftedStackInstancesCount() == null ^ this.getDriftedStackInstancesCount() == null)
return false;
if (other.getDriftedStackInstancesCount() != null && other.getDriftedStackInstancesCount().equals(this.getDriftedStackInstancesCount()) == false)
return false;
if (other.getInSyncStackInstancesCount() == null ^ this.getInSyncStackInstancesCount() == null)
return false;
if (other.getInSyncStackInstancesCount() != null && other.getInSyncStackInstancesCount().equals(this.getInSyncStackInstancesCount()) == false)
return false;
if (other.getInProgressStackInstancesCount() == null ^ this.getInProgressStackInstancesCount() == null)
return false;
if (other.getInProgressStackInstancesCount() != null
&& other.getInProgressStackInstancesCount().equals(this.getInProgressStackInstancesCount()) == false)
return false;
if (other.getFailedStackInstancesCount() == null ^ this.getFailedStackInstancesCount() == null)
return false;
if (other.getFailedStackInstancesCount() != null && other.getFailedStackInstancesCount().equals(this.getFailedStackInstancesCount()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDriftStatus() == null) ? 0 : getDriftStatus().hashCode());
hashCode = prime * hashCode + ((getDriftDetectionStatus() == null) ? 0 : getDriftDetectionStatus().hashCode());
hashCode = prime * hashCode + ((getLastDriftCheckTimestamp() == null) ? 0 : getLastDriftCheckTimestamp().hashCode());
hashCode = prime * hashCode + ((getTotalStackInstancesCount() == null) ? 0 : getTotalStackInstancesCount().hashCode());
hashCode = prime * hashCode + ((getDriftedStackInstancesCount() == null) ? 0 : getDriftedStackInstancesCount().hashCode());
hashCode = prime * hashCode + ((getInSyncStackInstancesCount() == null) ? 0 : getInSyncStackInstancesCount().hashCode());
hashCode = prime * hashCode + ((getInProgressStackInstancesCount() == null) ? 0 : getInProgressStackInstancesCount().hashCode());
hashCode = prime * hashCode + ((getFailedStackInstancesCount() == null) ? 0 : getFailedStackInstancesCount().hashCode());
return hashCode;
}
@Override
public StackSetDriftDetectionDetails clone() {
try {
return (StackSetDriftDetectionDetails) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}