com.amazonaws.services.cloudformation.model.StackResourceDriftInformationSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-cloudformation Show documentation
/*
* Copyright 2013-2018 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;
/**
*
* Summarizes information about whether the resource's actual configuration differs, or has drifted, from its
* expected configuration.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class StackResourceDriftInformationSummary implements Serializable, Cloneable {
/**
*
* Status of the resource's actual configuration compared to its expected configuration
*
*
* -
*
* DELETED
: The resource differs from its expected configuration in that it has been deleted.
*
*
* -
*
* MODIFIED
: The resource differs from its expected configuration.
*
*
* -
*
* NOT_CHECKED
: AWS CloudFormation has not checked if the resource differs from its expected
* configuration.
*
*
* Any resources that do not currently support drift detection have a status of NOT_CHECKED
. For more
* information, see Resources that Support Drift Detection. If you performed an ContinueUpdateRollback operation on a
* stack, any resources included in ResourcesToSkip
will also have a status of NOT_CHECKED
* . For more information on skipping resources during rollback operations, see Continue Rolling Back an Update in the AWS CloudFormation User Guide.
*
*
* -
*
* IN_SYNC
: The resources's actual configuration matches its expected configuration.
*
*
*
*/
private String stackResourceDriftStatus;
/**
*
* When AWS CloudFormation last checked if the resource had drifted from its expected configuration.
*
*/
private java.util.Date lastCheckTimestamp;
/**
*
* Status of the resource's actual configuration compared to its expected configuration
*
*
* -
*
* DELETED
: The resource differs from its expected configuration in that it has been deleted.
*
*
* -
*
* MODIFIED
: The resource differs from its expected configuration.
*
*
* -
*
* NOT_CHECKED
: AWS CloudFormation has not checked if the resource differs from its expected
* configuration.
*
*
* Any resources that do not currently support drift detection have a status of NOT_CHECKED
. For more
* information, see Resources that Support Drift Detection. If you performed an ContinueUpdateRollback operation on a
* stack, any resources included in ResourcesToSkip
will also have a status of NOT_CHECKED
* . For more information on skipping resources during rollback operations, see Continue Rolling Back an Update in the AWS CloudFormation User Guide.
*
*
* -
*
* IN_SYNC
: The resources's actual configuration matches its expected configuration.
*
*
*
*
* @param stackResourceDriftStatus
* Status of the resource's actual configuration compared to its expected configuration
*
* -
*
* DELETED
: The resource differs from its expected configuration in that it has been deleted.
*
*
* -
*
* MODIFIED
: The resource differs from its expected configuration.
*
*
* -
*
* NOT_CHECKED
: AWS CloudFormation has not checked if the resource differs from its expected
* configuration.
*
*
* Any resources that do not currently support drift detection have a status of NOT_CHECKED
. For
* more information, see Resources that Support Drift Detection. If you performed an ContinueUpdateRollback operation
* on a stack, any resources included in ResourcesToSkip
will also have a status of
* NOT_CHECKED
. For more information on skipping resources during rollback operations, see Continue Rolling Back an Update in the AWS CloudFormation User Guide.
*
*
* -
*
* IN_SYNC
: The resources's actual configuration matches its expected configuration.
*
*
* @see StackResourceDriftStatus
*/
public void setStackResourceDriftStatus(String stackResourceDriftStatus) {
this.stackResourceDriftStatus = stackResourceDriftStatus;
}
/**
*
* Status of the resource's actual configuration compared to its expected configuration
*
*
* -
*
* DELETED
: The resource differs from its expected configuration in that it has been deleted.
*
*
* -
*
* MODIFIED
: The resource differs from its expected configuration.
*
*
* -
*
* NOT_CHECKED
: AWS CloudFormation has not checked if the resource differs from its expected
* configuration.
*
*
* Any resources that do not currently support drift detection have a status of NOT_CHECKED
. For more
* information, see Resources that Support Drift Detection. If you performed an ContinueUpdateRollback operation on a
* stack, any resources included in ResourcesToSkip
will also have a status of NOT_CHECKED
* . For more information on skipping resources during rollback operations, see Continue Rolling Back an Update in the AWS CloudFormation User Guide.
*
*
* -
*
* IN_SYNC
: The resources's actual configuration matches its expected configuration.
*
*
*
*
* @return Status of the resource's actual configuration compared to its expected configuration
*
* -
*
* DELETED
: The resource differs from its expected configuration in that it has been deleted.
*
*
* -
*
* MODIFIED
: The resource differs from its expected configuration.
*
*
* -
*
* NOT_CHECKED
: AWS CloudFormation has not checked if the resource differs from its expected
* configuration.
*
*
* Any resources that do not currently support drift detection have a status of NOT_CHECKED
.
* For more information, see Resources that Support Drift Detection. If you performed an ContinueUpdateRollback operation
* on a stack, any resources included in ResourcesToSkip
will also have a status of
* NOT_CHECKED
. For more information on skipping resources during rollback operations, see Continue Rolling Back an Update in the AWS CloudFormation User Guide.
*
*
* -
*
* IN_SYNC
: The resources's actual configuration matches its expected configuration.
*
*
* @see StackResourceDriftStatus
*/
public String getStackResourceDriftStatus() {
return this.stackResourceDriftStatus;
}
/**
*
* Status of the resource's actual configuration compared to its expected configuration
*
*
* -
*
* DELETED
: The resource differs from its expected configuration in that it has been deleted.
*
*
* -
*
* MODIFIED
: The resource differs from its expected configuration.
*
*
* -
*
* NOT_CHECKED
: AWS CloudFormation has not checked if the resource differs from its expected
* configuration.
*
*
* Any resources that do not currently support drift detection have a status of NOT_CHECKED
. For more
* information, see Resources that Support Drift Detection. If you performed an ContinueUpdateRollback operation on a
* stack, any resources included in ResourcesToSkip
will also have a status of NOT_CHECKED
* . For more information on skipping resources during rollback operations, see Continue Rolling Back an Update in the AWS CloudFormation User Guide.
*
*
* -
*
* IN_SYNC
: The resources's actual configuration matches its expected configuration.
*
*
*
*
* @param stackResourceDriftStatus
* Status of the resource's actual configuration compared to its expected configuration
*
* -
*
* DELETED
: The resource differs from its expected configuration in that it has been deleted.
*
*
* -
*
* MODIFIED
: The resource differs from its expected configuration.
*
*
* -
*
* NOT_CHECKED
: AWS CloudFormation has not checked if the resource differs from its expected
* configuration.
*
*
* Any resources that do not currently support drift detection have a status of NOT_CHECKED
. For
* more information, see Resources that Support Drift Detection. If you performed an ContinueUpdateRollback operation
* on a stack, any resources included in ResourcesToSkip
will also have a status of
* NOT_CHECKED
. For more information on skipping resources during rollback operations, see Continue Rolling Back an Update in the AWS CloudFormation User Guide.
*
*
* -
*
* IN_SYNC
: The resources's actual configuration matches its expected configuration.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see StackResourceDriftStatus
*/
public StackResourceDriftInformationSummary withStackResourceDriftStatus(String stackResourceDriftStatus) {
setStackResourceDriftStatus(stackResourceDriftStatus);
return this;
}
/**
*
* Status of the resource's actual configuration compared to its expected configuration
*
*
* -
*
* DELETED
: The resource differs from its expected configuration in that it has been deleted.
*
*
* -
*
* MODIFIED
: The resource differs from its expected configuration.
*
*
* -
*
* NOT_CHECKED
: AWS CloudFormation has not checked if the resource differs from its expected
* configuration.
*
*
* Any resources that do not currently support drift detection have a status of NOT_CHECKED
. For more
* information, see Resources that Support Drift Detection. If you performed an ContinueUpdateRollback operation on a
* stack, any resources included in ResourcesToSkip
will also have a status of NOT_CHECKED
* . For more information on skipping resources during rollback operations, see Continue Rolling Back an Update in the AWS CloudFormation User Guide.
*
*
* -
*
* IN_SYNC
: The resources's actual configuration matches its expected configuration.
*
*
*
*
* @param stackResourceDriftStatus
* Status of the resource's actual configuration compared to its expected configuration
*
* -
*
* DELETED
: The resource differs from its expected configuration in that it has been deleted.
*
*
* -
*
* MODIFIED
: The resource differs from its expected configuration.
*
*
* -
*
* NOT_CHECKED
: AWS CloudFormation has not checked if the resource differs from its expected
* configuration.
*
*
* Any resources that do not currently support drift detection have a status of NOT_CHECKED
. For
* more information, see Resources that Support Drift Detection. If you performed an ContinueUpdateRollback operation
* on a stack, any resources included in ResourcesToSkip
will also have a status of
* NOT_CHECKED
. For more information on skipping resources during rollback operations, see Continue Rolling Back an Update in the AWS CloudFormation User Guide.
*
*
* -
*
* IN_SYNC
: The resources's actual configuration matches its expected configuration.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see StackResourceDriftStatus
*/
public StackResourceDriftInformationSummary withStackResourceDriftStatus(StackResourceDriftStatus stackResourceDriftStatus) {
this.stackResourceDriftStatus = stackResourceDriftStatus.toString();
return this;
}
/**
*
* When AWS CloudFormation last checked if the resource had drifted from its expected configuration.
*
*
* @param lastCheckTimestamp
* When AWS CloudFormation last checked if the resource had drifted from its expected configuration.
*/
public void setLastCheckTimestamp(java.util.Date lastCheckTimestamp) {
this.lastCheckTimestamp = lastCheckTimestamp;
}
/**
*
* When AWS CloudFormation last checked if the resource had drifted from its expected configuration.
*
*
* @return When AWS CloudFormation last checked if the resource had drifted from its expected configuration.
*/
public java.util.Date getLastCheckTimestamp() {
return this.lastCheckTimestamp;
}
/**
*
* When AWS CloudFormation last checked if the resource had drifted from its expected configuration.
*
*
* @param lastCheckTimestamp
* When AWS CloudFormation last checked if the resource had drifted from its expected configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StackResourceDriftInformationSummary withLastCheckTimestamp(java.util.Date lastCheckTimestamp) {
setLastCheckTimestamp(lastCheckTimestamp);
return this;
}
/**
* Returns a string representation of this object; useful for testing and debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getStackResourceDriftStatus() != null)
sb.append("StackResourceDriftStatus: ").append(getStackResourceDriftStatus()).append(",");
if (getLastCheckTimestamp() != null)
sb.append("LastCheckTimestamp: ").append(getLastCheckTimestamp());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof StackResourceDriftInformationSummary == false)
return false;
StackResourceDriftInformationSummary other = (StackResourceDriftInformationSummary) obj;
if (other.getStackResourceDriftStatus() == null ^ this.getStackResourceDriftStatus() == null)
return false;
if (other.getStackResourceDriftStatus() != null && other.getStackResourceDriftStatus().equals(this.getStackResourceDriftStatus()) == false)
return false;
if (other.getLastCheckTimestamp() == null ^ this.getLastCheckTimestamp() == null)
return false;
if (other.getLastCheckTimestamp() != null && other.getLastCheckTimestamp().equals(this.getLastCheckTimestamp()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getStackResourceDriftStatus() == null) ? 0 : getStackResourceDriftStatus().hashCode());
hashCode = prime * hashCode + ((getLastCheckTimestamp() == null) ? 0 : getLastCheckTimestamp().hashCode());
return hashCode;
}
@Override
public StackResourceDriftInformationSummary clone() {
try {
return (StackResourceDriftInformationSummary) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}