/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace CloudFormation { namespace Model { class DescribeStackDriftDetectionStatusResult { public: AWS_CLOUDFORMATION_API DescribeStackDriftDetectionStatusResult(); AWS_CLOUDFORMATION_API DescribeStackDriftDetectionStatusResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDFORMATION_API DescribeStackDriftDetectionStatusResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the stack.

*/ inline const Aws::String& GetStackId() const{ return m_stackId; } /** *

The ID of the stack.

*/ inline void SetStackId(const Aws::String& value) { m_stackId = value; } /** *

The ID of the stack.

*/ inline void SetStackId(Aws::String&& value) { m_stackId = std::move(value); } /** *

The ID of the stack.

*/ inline void SetStackId(const char* value) { m_stackId.assign(value); } /** *

The ID of the stack.

*/ inline DescribeStackDriftDetectionStatusResult& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} /** *

The ID of the stack.

*/ inline DescribeStackDriftDetectionStatusResult& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;} /** *

The ID of the stack.

*/ inline DescribeStackDriftDetectionStatusResult& WithStackId(const char* value) { SetStackId(value); return *this;} /** *

The ID of the drift detection results of this operation.

*

CloudFormation generates new results, with a new drift detection ID, each * time this operation is run. However, the number of reports CloudFormation * retains for any given stack, and for how long, may vary.

*/ inline const Aws::String& GetStackDriftDetectionId() const{ return m_stackDriftDetectionId; } /** *

The ID of the drift detection results of this operation.

*

CloudFormation generates new results, with a new drift detection ID, each * time this operation is run. However, the number of reports CloudFormation * retains for any given stack, and for how long, may vary.

*/ inline void SetStackDriftDetectionId(const Aws::String& value) { m_stackDriftDetectionId = value; } /** *

The ID of the drift detection results of this operation.

*

CloudFormation generates new results, with a new drift detection ID, each * time this operation is run. However, the number of reports CloudFormation * retains for any given stack, and for how long, may vary.

*/ inline void SetStackDriftDetectionId(Aws::String&& value) { m_stackDriftDetectionId = std::move(value); } /** *

The ID of the drift detection results of this operation.

*

CloudFormation generates new results, with a new drift detection ID, each * time this operation is run. However, the number of reports CloudFormation * retains for any given stack, and for how long, may vary.

*/ inline void SetStackDriftDetectionId(const char* value) { m_stackDriftDetectionId.assign(value); } /** *

The ID of the drift detection results of this operation.

*

CloudFormation generates new results, with a new drift detection ID, each * time this operation is run. However, the number of reports CloudFormation * retains for any given stack, and for how long, may vary.

*/ inline DescribeStackDriftDetectionStatusResult& WithStackDriftDetectionId(const Aws::String& value) { SetStackDriftDetectionId(value); return *this;} /** *

The ID of the drift detection results of this operation.

*

CloudFormation generates new results, with a new drift detection ID, each * time this operation is run. However, the number of reports CloudFormation * retains for any given stack, and for how long, may vary.

*/ inline DescribeStackDriftDetectionStatusResult& WithStackDriftDetectionId(Aws::String&& value) { SetStackDriftDetectionId(std::move(value)); return *this;} /** *

The ID of the drift detection results of this operation.

*

CloudFormation generates new results, with a new drift detection ID, each * time this operation is run. However, the number of reports CloudFormation * retains for any given stack, and for how long, may vary.

*/ inline DescribeStackDriftDetectionStatusResult& WithStackDriftDetectionId(const char* value) { SetStackDriftDetectionId(value); return *this;} /** *

Status of the stack's actual configuration compared to its expected * configuration.

  • DRIFTED: The stack differs from * its expected template configuration. A stack is considered to have drifted if * one or more of its resources have drifted.

  • * NOT_CHECKED: CloudFormation hasn't checked if the stack differs * from its expected template configuration.

  • * IN_SYNC: The stack's actual configuration matches its expected * template configuration.

  • UNKNOWN: This value is * reserved for future use.

*/ inline const StackDriftStatus& GetStackDriftStatus() const{ return m_stackDriftStatus; } /** *

Status of the stack's actual configuration compared to its expected * configuration.

  • DRIFTED: The stack differs from * its expected template configuration. A stack is considered to have drifted if * one or more of its resources have drifted.

  • * NOT_CHECKED: CloudFormation hasn't checked if the stack differs * from its expected template configuration.

  • * IN_SYNC: The stack's actual configuration matches its expected * template configuration.

  • UNKNOWN: This value is * reserved for future use.

*/ inline void SetStackDriftStatus(const StackDriftStatus& value) { m_stackDriftStatus = value; } /** *

Status of the stack's actual configuration compared to its expected * configuration.

  • DRIFTED: The stack differs from * its expected template configuration. A stack is considered to have drifted if * one or more of its resources have drifted.

  • * NOT_CHECKED: CloudFormation hasn't checked if the stack differs * from its expected template configuration.

  • * IN_SYNC: The stack's actual configuration matches its expected * template configuration.

  • UNKNOWN: This value is * reserved for future use.

*/ inline void SetStackDriftStatus(StackDriftStatus&& value) { m_stackDriftStatus = std::move(value); } /** *

Status of the stack's actual configuration compared to its expected * configuration.

  • DRIFTED: The stack differs from * its expected template configuration. A stack is considered to have drifted if * one or more of its resources have drifted.

  • * NOT_CHECKED: CloudFormation hasn't checked if the stack differs * from its expected template configuration.

  • * IN_SYNC: The stack's actual configuration matches its expected * template configuration.

  • UNKNOWN: This value is * reserved for future use.

*/ inline DescribeStackDriftDetectionStatusResult& WithStackDriftStatus(const StackDriftStatus& value) { SetStackDriftStatus(value); return *this;} /** *

Status of the stack's actual configuration compared to its expected * configuration.

  • DRIFTED: The stack differs from * its expected template configuration. A stack is considered to have drifted if * one or more of its resources have drifted.

  • * NOT_CHECKED: CloudFormation hasn't checked if the stack differs * from its expected template configuration.

  • * IN_SYNC: The stack's actual configuration matches its expected * template configuration.

  • UNKNOWN: This value is * reserved for future use.

*/ inline DescribeStackDriftDetectionStatusResult& WithStackDriftStatus(StackDriftStatus&& value) { SetStackDriftStatus(std::move(value)); return *this;} /** *

The status of the stack drift detection operation.

  • * DETECTION_COMPLETE: The stack drift detection operation has * successfully completed for all resources in the stack that support drift * detection. (Resources that don't currently support stack detection remain * unchecked.)

    If you specified logical resource IDs for CloudFormation to * use as a filter for the stack drift detection operation, only the resources with * those logical IDs are checked for drift.

  • * DETECTION_FAILED: The stack drift detection operation has failed * for at least one resource in the stack. Results will be available for resources * on which CloudFormation successfully completed drift detection.

  • *

    DETECTION_IN_PROGRESS: The stack drift detection operation is * currently in progress.

*/ inline const StackDriftDetectionStatus& GetDetectionStatus() const{ return m_detectionStatus; } /** *

The status of the stack drift detection operation.

  • * DETECTION_COMPLETE: The stack drift detection operation has * successfully completed for all resources in the stack that support drift * detection. (Resources that don't currently support stack detection remain * unchecked.)

    If you specified logical resource IDs for CloudFormation to * use as a filter for the stack drift detection operation, only the resources with * those logical IDs are checked for drift.

  • * DETECTION_FAILED: The stack drift detection operation has failed * for at least one resource in the stack. Results will be available for resources * on which CloudFormation successfully completed drift detection.

  • *

    DETECTION_IN_PROGRESS: The stack drift detection operation is * currently in progress.

*/ inline void SetDetectionStatus(const StackDriftDetectionStatus& value) { m_detectionStatus = value; } /** *

The status of the stack drift detection operation.

  • * DETECTION_COMPLETE: The stack drift detection operation has * successfully completed for all resources in the stack that support drift * detection. (Resources that don't currently support stack detection remain * unchecked.)

    If you specified logical resource IDs for CloudFormation to * use as a filter for the stack drift detection operation, only the resources with * those logical IDs are checked for drift.

  • * DETECTION_FAILED: The stack drift detection operation has failed * for at least one resource in the stack. Results will be available for resources * on which CloudFormation successfully completed drift detection.

  • *

    DETECTION_IN_PROGRESS: The stack drift detection operation is * currently in progress.

*/ inline void SetDetectionStatus(StackDriftDetectionStatus&& value) { m_detectionStatus = std::move(value); } /** *

The status of the stack drift detection operation.

  • * DETECTION_COMPLETE: The stack drift detection operation has * successfully completed for all resources in the stack that support drift * detection. (Resources that don't currently support stack detection remain * unchecked.)

    If you specified logical resource IDs for CloudFormation to * use as a filter for the stack drift detection operation, only the resources with * those logical IDs are checked for drift.

  • * DETECTION_FAILED: The stack drift detection operation has failed * for at least one resource in the stack. Results will be available for resources * on which CloudFormation successfully completed drift detection.

  • *

    DETECTION_IN_PROGRESS: The stack drift detection operation is * currently in progress.

*/ inline DescribeStackDriftDetectionStatusResult& WithDetectionStatus(const StackDriftDetectionStatus& value) { SetDetectionStatus(value); return *this;} /** *

The status of the stack drift detection operation.

  • * DETECTION_COMPLETE: The stack drift detection operation has * successfully completed for all resources in the stack that support drift * detection. (Resources that don't currently support stack detection remain * unchecked.)

    If you specified logical resource IDs for CloudFormation to * use as a filter for the stack drift detection operation, only the resources with * those logical IDs are checked for drift.

  • * DETECTION_FAILED: The stack drift detection operation has failed * for at least one resource in the stack. Results will be available for resources * on which CloudFormation successfully completed drift detection.

  • *

    DETECTION_IN_PROGRESS: The stack drift detection operation is * currently in progress.

*/ inline DescribeStackDriftDetectionStatusResult& WithDetectionStatus(StackDriftDetectionStatus&& value) { SetDetectionStatus(std::move(value)); return *this;} /** *

The reason the stack drift detection operation has its current status.

*/ inline const Aws::String& GetDetectionStatusReason() const{ return m_detectionStatusReason; } /** *

The reason the stack drift detection operation has its current status.

*/ inline void SetDetectionStatusReason(const Aws::String& value) { m_detectionStatusReason = value; } /** *

The reason the stack drift detection operation has its current status.

*/ inline void SetDetectionStatusReason(Aws::String&& value) { m_detectionStatusReason = std::move(value); } /** *

The reason the stack drift detection operation has its current status.

*/ inline void SetDetectionStatusReason(const char* value) { m_detectionStatusReason.assign(value); } /** *

The reason the stack drift detection operation has its current status.

*/ inline DescribeStackDriftDetectionStatusResult& WithDetectionStatusReason(const Aws::String& value) { SetDetectionStatusReason(value); return *this;} /** *

The reason the stack drift detection operation has its current status.

*/ inline DescribeStackDriftDetectionStatusResult& WithDetectionStatusReason(Aws::String&& value) { SetDetectionStatusReason(std::move(value)); return *this;} /** *

The reason the stack drift detection operation has its current status.

*/ inline DescribeStackDriftDetectionStatusResult& WithDetectionStatusReason(const char* value) { SetDetectionStatusReason(value); return *this;} /** *

Total number of stack resources that have drifted. This is NULL until the * drift detection operation reaches a status of DETECTION_COMPLETE. * This value will be 0 for stacks whose drift status is IN_SYNC.

*/ inline int GetDriftedStackResourceCount() const{ return m_driftedStackResourceCount; } /** *

Total number of stack resources that have drifted. This is NULL until the * drift detection operation reaches a status of DETECTION_COMPLETE. * This value will be 0 for stacks whose drift status is IN_SYNC.

*/ inline void SetDriftedStackResourceCount(int value) { m_driftedStackResourceCount = value; } /** *

Total number of stack resources that have drifted. This is NULL until the * drift detection operation reaches a status of DETECTION_COMPLETE. * This value will be 0 for stacks whose drift status is IN_SYNC.

*/ inline DescribeStackDriftDetectionStatusResult& WithDriftedStackResourceCount(int value) { SetDriftedStackResourceCount(value); return *this;} /** *

Time at which the stack drift detection operation was initiated.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

Time at which the stack drift detection operation was initiated.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestamp = value; } /** *

Time at which the stack drift detection operation was initiated.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestamp = std::move(value); } /** *

Time at which the stack drift detection operation was initiated.

*/ inline DescribeStackDriftDetectionStatusResult& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

Time at which the stack drift detection operation was initiated.

*/ inline DescribeStackDriftDetectionStatusResult& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline DescribeStackDriftDetectionStatusResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline DescribeStackDriftDetectionStatusResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_stackId; Aws::String m_stackDriftDetectionId; StackDriftStatus m_stackDriftStatus; StackDriftDetectionStatus m_detectionStatus; Aws::String m_detectionStatusReason; int m_driftedStackResourceCount; Aws::Utils::DateTime m_timestamp; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace CloudFormation } // namespace Aws