/** * 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 { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFormation { namespace Model { /** *

The ChangeSetSummary structure describes a change set, its * status, and the stack with which it's associated.

See Also:

AWS * API Reference

*/ class ChangeSetSummary { public: AWS_CLOUDFORMATION_API ChangeSetSummary(); AWS_CLOUDFORMATION_API ChangeSetSummary(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API ChangeSetSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ID of the stack with which the change set is associated.

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

The ID of the stack with which the change set is associated.

*/ inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; } /** *

The ID of the stack with which the change set is associated.

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

The ID of the stack with which the change set is associated.

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

The ID of the stack with which the change set is associated.

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

The ID of the stack with which the change set is associated.

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

The ID of the stack with which the change set is associated.

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

The ID of the stack with which the change set is associated.

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

The name of the stack with which the change set is associated.

*/ inline const Aws::String& GetStackName() const{ return m_stackName; } /** *

The name of the stack with which the change set is associated.

*/ inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; } /** *

The name of the stack with which the change set is associated.

*/ inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; } /** *

The name of the stack with which the change set is associated.

*/ inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); } /** *

The name of the stack with which the change set is associated.

*/ inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); } /** *

The name of the stack with which the change set is associated.

*/ inline ChangeSetSummary& WithStackName(const Aws::String& value) { SetStackName(value); return *this;} /** *

The name of the stack with which the change set is associated.

*/ inline ChangeSetSummary& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;} /** *

The name of the stack with which the change set is associated.

*/ inline ChangeSetSummary& WithStackName(const char* value) { SetStackName(value); return *this;} /** *

The ID of the change set.

*/ inline const Aws::String& GetChangeSetId() const{ return m_changeSetId; } /** *

The ID of the change set.

*/ inline bool ChangeSetIdHasBeenSet() const { return m_changeSetIdHasBeenSet; } /** *

The ID of the change set.

*/ inline void SetChangeSetId(const Aws::String& value) { m_changeSetIdHasBeenSet = true; m_changeSetId = value; } /** *

The ID of the change set.

*/ inline void SetChangeSetId(Aws::String&& value) { m_changeSetIdHasBeenSet = true; m_changeSetId = std::move(value); } /** *

The ID of the change set.

*/ inline void SetChangeSetId(const char* value) { m_changeSetIdHasBeenSet = true; m_changeSetId.assign(value); } /** *

The ID of the change set.

*/ inline ChangeSetSummary& WithChangeSetId(const Aws::String& value) { SetChangeSetId(value); return *this;} /** *

The ID of the change set.

*/ inline ChangeSetSummary& WithChangeSetId(Aws::String&& value) { SetChangeSetId(std::move(value)); return *this;} /** *

The ID of the change set.

*/ inline ChangeSetSummary& WithChangeSetId(const char* value) { SetChangeSetId(value); return *this;} /** *

The name of the change set.

*/ inline const Aws::String& GetChangeSetName() const{ return m_changeSetName; } /** *

The name of the change set.

*/ inline bool ChangeSetNameHasBeenSet() const { return m_changeSetNameHasBeenSet; } /** *

The name of the change set.

*/ inline void SetChangeSetName(const Aws::String& value) { m_changeSetNameHasBeenSet = true; m_changeSetName = value; } /** *

The name of the change set.

*/ inline void SetChangeSetName(Aws::String&& value) { m_changeSetNameHasBeenSet = true; m_changeSetName = std::move(value); } /** *

The name of the change set.

*/ inline void SetChangeSetName(const char* value) { m_changeSetNameHasBeenSet = true; m_changeSetName.assign(value); } /** *

The name of the change set.

*/ inline ChangeSetSummary& WithChangeSetName(const Aws::String& value) { SetChangeSetName(value); return *this;} /** *

The name of the change set.

*/ inline ChangeSetSummary& WithChangeSetName(Aws::String&& value) { SetChangeSetName(std::move(value)); return *this;} /** *

The name of the change set.

*/ inline ChangeSetSummary& WithChangeSetName(const char* value) { SetChangeSetName(value); return *this;} /** *

If the change set execution status is AVAILABLE, you can execute * the change set. If you can't execute the change set, the status indicates why. * For example, a change set might be in an UNAVAILABLE state because * CloudFormation is still creating it or in an OBSOLETE state because * the stack was already updated.

*/ inline const ExecutionStatus& GetExecutionStatus() const{ return m_executionStatus; } /** *

If the change set execution status is AVAILABLE, you can execute * the change set. If you can't execute the change set, the status indicates why. * For example, a change set might be in an UNAVAILABLE state because * CloudFormation is still creating it or in an OBSOLETE state because * the stack was already updated.

*/ inline bool ExecutionStatusHasBeenSet() const { return m_executionStatusHasBeenSet; } /** *

If the change set execution status is AVAILABLE, you can execute * the change set. If you can't execute the change set, the status indicates why. * For example, a change set might be in an UNAVAILABLE state because * CloudFormation is still creating it or in an OBSOLETE state because * the stack was already updated.

*/ inline void SetExecutionStatus(const ExecutionStatus& value) { m_executionStatusHasBeenSet = true; m_executionStatus = value; } /** *

If the change set execution status is AVAILABLE, you can execute * the change set. If you can't execute the change set, the status indicates why. * For example, a change set might be in an UNAVAILABLE state because * CloudFormation is still creating it or in an OBSOLETE state because * the stack was already updated.

*/ inline void SetExecutionStatus(ExecutionStatus&& value) { m_executionStatusHasBeenSet = true; m_executionStatus = std::move(value); } /** *

If the change set execution status is AVAILABLE, you can execute * the change set. If you can't execute the change set, the status indicates why. * For example, a change set might be in an UNAVAILABLE state because * CloudFormation is still creating it or in an OBSOLETE state because * the stack was already updated.

*/ inline ChangeSetSummary& WithExecutionStatus(const ExecutionStatus& value) { SetExecutionStatus(value); return *this;} /** *

If the change set execution status is AVAILABLE, you can execute * the change set. If you can't execute the change set, the status indicates why. * For example, a change set might be in an UNAVAILABLE state because * CloudFormation is still creating it or in an OBSOLETE state because * the stack was already updated.

*/ inline ChangeSetSummary& WithExecutionStatus(ExecutionStatus&& value) { SetExecutionStatus(std::move(value)); return *this;} /** *

The state of the change set, such as CREATE_IN_PROGRESS, * CREATE_COMPLETE, or FAILED.

*/ inline const ChangeSetStatus& GetStatus() const{ return m_status; } /** *

The state of the change set, such as CREATE_IN_PROGRESS, * CREATE_COMPLETE, or FAILED.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The state of the change set, such as CREATE_IN_PROGRESS, * CREATE_COMPLETE, or FAILED.

*/ inline void SetStatus(const ChangeSetStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The state of the change set, such as CREATE_IN_PROGRESS, * CREATE_COMPLETE, or FAILED.

*/ inline void SetStatus(ChangeSetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The state of the change set, such as CREATE_IN_PROGRESS, * CREATE_COMPLETE, or FAILED.

*/ inline ChangeSetSummary& WithStatus(const ChangeSetStatus& value) { SetStatus(value); return *this;} /** *

The state of the change set, such as CREATE_IN_PROGRESS, * CREATE_COMPLETE, or FAILED.

*/ inline ChangeSetSummary& WithStatus(ChangeSetStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A description of the change set's status. For example, if your change set is * in the FAILED state, CloudFormation shows the error message.

*/ inline const Aws::String& GetStatusReason() const{ return m_statusReason; } /** *

A description of the change set's status. For example, if your change set is * in the FAILED state, CloudFormation shows the error message.

*/ inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } /** *

A description of the change set's status. For example, if your change set is * in the FAILED state, CloudFormation shows the error message.

*/ inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } /** *

A description of the change set's status. For example, if your change set is * in the FAILED state, CloudFormation shows the error message.

*/ inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } /** *

A description of the change set's status. For example, if your change set is * in the FAILED state, CloudFormation shows the error message.

*/ inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); } /** *

A description of the change set's status. For example, if your change set is * in the FAILED state, CloudFormation shows the error message.

*/ inline ChangeSetSummary& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *

A description of the change set's status. For example, if your change set is * in the FAILED state, CloudFormation shows the error message.

*/ inline ChangeSetSummary& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *

A description of the change set's status. For example, if your change set is * in the FAILED state, CloudFormation shows the error message.

*/ inline ChangeSetSummary& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} /** *

The start time when the change set was created, in UTC.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The start time when the change set was created, in UTC.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The start time when the change set was created, in UTC.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The start time when the change set was created, in UTC.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The start time when the change set was created, in UTC.

*/ inline ChangeSetSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The start time when the change set was created, in UTC.

*/ inline ChangeSetSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

Descriptive information about the change set.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

Descriptive information about the change set.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

Descriptive information about the change set.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

Descriptive information about the change set.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

Descriptive information about the change set.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

Descriptive information about the change set.

*/ inline ChangeSetSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

Descriptive information about the change set.

*/ inline ChangeSetSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

Descriptive information about the change set.

*/ inline ChangeSetSummary& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Specifies the current setting of IncludeNestedStacks for the * change set.

*/ inline bool GetIncludeNestedStacks() const{ return m_includeNestedStacks; } /** *

Specifies the current setting of IncludeNestedStacks for the * change set.

*/ inline bool IncludeNestedStacksHasBeenSet() const { return m_includeNestedStacksHasBeenSet; } /** *

Specifies the current setting of IncludeNestedStacks for the * change set.

*/ inline void SetIncludeNestedStacks(bool value) { m_includeNestedStacksHasBeenSet = true; m_includeNestedStacks = value; } /** *

Specifies the current setting of IncludeNestedStacks for the * change set.

*/ inline ChangeSetSummary& WithIncludeNestedStacks(bool value) { SetIncludeNestedStacks(value); return *this;} /** *

The parent change set ID.

*/ inline const Aws::String& GetParentChangeSetId() const{ return m_parentChangeSetId; } /** *

The parent change set ID.

*/ inline bool ParentChangeSetIdHasBeenSet() const { return m_parentChangeSetIdHasBeenSet; } /** *

The parent change set ID.

*/ inline void SetParentChangeSetId(const Aws::String& value) { m_parentChangeSetIdHasBeenSet = true; m_parentChangeSetId = value; } /** *

The parent change set ID.

*/ inline void SetParentChangeSetId(Aws::String&& value) { m_parentChangeSetIdHasBeenSet = true; m_parentChangeSetId = std::move(value); } /** *

The parent change set ID.

*/ inline void SetParentChangeSetId(const char* value) { m_parentChangeSetIdHasBeenSet = true; m_parentChangeSetId.assign(value); } /** *

The parent change set ID.

*/ inline ChangeSetSummary& WithParentChangeSetId(const Aws::String& value) { SetParentChangeSetId(value); return *this;} /** *

The parent change set ID.

*/ inline ChangeSetSummary& WithParentChangeSetId(Aws::String&& value) { SetParentChangeSetId(std::move(value)); return *this;} /** *

The parent change set ID.

*/ inline ChangeSetSummary& WithParentChangeSetId(const char* value) { SetParentChangeSetId(value); return *this;} /** *

The root change set ID.

*/ inline const Aws::String& GetRootChangeSetId() const{ return m_rootChangeSetId; } /** *

The root change set ID.

*/ inline bool RootChangeSetIdHasBeenSet() const { return m_rootChangeSetIdHasBeenSet; } /** *

The root change set ID.

*/ inline void SetRootChangeSetId(const Aws::String& value) { m_rootChangeSetIdHasBeenSet = true; m_rootChangeSetId = value; } /** *

The root change set ID.

*/ inline void SetRootChangeSetId(Aws::String&& value) { m_rootChangeSetIdHasBeenSet = true; m_rootChangeSetId = std::move(value); } /** *

The root change set ID.

*/ inline void SetRootChangeSetId(const char* value) { m_rootChangeSetIdHasBeenSet = true; m_rootChangeSetId.assign(value); } /** *

The root change set ID.

*/ inline ChangeSetSummary& WithRootChangeSetId(const Aws::String& value) { SetRootChangeSetId(value); return *this;} /** *

The root change set ID.

*/ inline ChangeSetSummary& WithRootChangeSetId(Aws::String&& value) { SetRootChangeSetId(std::move(value)); return *this;} /** *

The root change set ID.

*/ inline ChangeSetSummary& WithRootChangeSetId(const char* value) { SetRootChangeSetId(value); return *this;} private: Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::String m_stackName; bool m_stackNameHasBeenSet = false; Aws::String m_changeSetId; bool m_changeSetIdHasBeenSet = false; Aws::String m_changeSetName; bool m_changeSetNameHasBeenSet = false; ExecutionStatus m_executionStatus; bool m_executionStatusHasBeenSet = false; ChangeSetStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusReason; bool m_statusReasonHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; bool m_includeNestedStacks; bool m_includeNestedStacksHasBeenSet = false; Aws::String m_parentChangeSetId; bool m_parentChangeSetIdHasBeenSet = false; Aws::String m_rootChangeSetId; bool m_rootChangeSetIdHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws