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

The structure containing summary information about resource drifts for a * stack instance.

See Also:

AWS * API Reference

*/ class StackInstanceResourceDriftsSummary { public: AWS_CLOUDFORMATION_API StackInstanceResourceDriftsSummary(); AWS_CLOUDFORMATION_API StackInstanceResourceDriftsSummary(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API StackInstanceResourceDriftsSummary& 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 instance.

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

The ID of the stack instance.

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

The ID of the stack instance.

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

The ID of the stack instance.

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

The ID of the stack instance.

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

The ID of the stack instance.

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

The ID of the stack instance.

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

The ID of the stack instance.

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

The logical name of the resource specified in the template.

*/ inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; } /** *

The logical name of the resource specified in the template.

*/ inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; } /** *

The logical name of the resource specified in the template.

*/ inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; } /** *

The logical name of the resource specified in the template.

*/ inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); } /** *

The logical name of the resource specified in the template.

*/ inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); } /** *

The logical name of the resource specified in the template.

*/ inline StackInstanceResourceDriftsSummary& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;} /** *

The logical name of the resource specified in the template.

*/ inline StackInstanceResourceDriftsSummary& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(std::move(value)); return *this;} /** *

The logical name of the resource specified in the template.

*/ inline StackInstanceResourceDriftsSummary& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;} /** *

The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.

*/ inline const Aws::String& GetPhysicalResourceId() const{ return m_physicalResourceId; } /** *

The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.

*/ inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; } /** *

The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.

*/ inline void SetPhysicalResourceId(const Aws::String& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; } /** *

The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.

*/ inline void SetPhysicalResourceId(Aws::String&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::move(value); } /** *

The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.

*/ inline void SetPhysicalResourceId(const char* value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId.assign(value); } /** *

The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.

*/ inline StackInstanceResourceDriftsSummary& WithPhysicalResourceId(const Aws::String& value) { SetPhysicalResourceId(value); return *this;} /** *

The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.

*/ inline StackInstanceResourceDriftsSummary& WithPhysicalResourceId(Aws::String&& value) { SetPhysicalResourceId(std::move(value)); return *this;} /** *

The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.

*/ inline StackInstanceResourceDriftsSummary& WithPhysicalResourceId(const char* value) { SetPhysicalResourceId(value); return *this;} /** *

Context information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.

*/ inline const Aws::Vector& GetPhysicalResourceIdContext() const{ return m_physicalResourceIdContext; } /** *

Context information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.

*/ inline bool PhysicalResourceIdContextHasBeenSet() const { return m_physicalResourceIdContextHasBeenSet; } /** *

Context information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.

*/ inline void SetPhysicalResourceIdContext(const Aws::Vector& value) { m_physicalResourceIdContextHasBeenSet = true; m_physicalResourceIdContext = value; } /** *

Context information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.

*/ inline void SetPhysicalResourceIdContext(Aws::Vector&& value) { m_physicalResourceIdContextHasBeenSet = true; m_physicalResourceIdContext = std::move(value); } /** *

Context information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.

*/ inline StackInstanceResourceDriftsSummary& WithPhysicalResourceIdContext(const Aws::Vector& value) { SetPhysicalResourceIdContext(value); return *this;} /** *

Context information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.

*/ inline StackInstanceResourceDriftsSummary& WithPhysicalResourceIdContext(Aws::Vector&& value) { SetPhysicalResourceIdContext(std::move(value)); return *this;} /** *

Context information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.

*/ inline StackInstanceResourceDriftsSummary& AddPhysicalResourceIdContext(const PhysicalResourceIdContextKeyValuePair& value) { m_physicalResourceIdContextHasBeenSet = true; m_physicalResourceIdContext.push_back(value); return *this; } /** *

Context information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.

*/ inline StackInstanceResourceDriftsSummary& AddPhysicalResourceIdContext(PhysicalResourceIdContextKeyValuePair&& value) { m_physicalResourceIdContextHasBeenSet = true; m_physicalResourceIdContext.push_back(std::move(value)); return *this; } /** *

Type of resource. For more information, go to Amazon * Web Services Resource Types Reference in the CloudFormation User Guide.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

Type of resource. For more information, go to Amazon * Web Services Resource Types Reference in the CloudFormation User Guide.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

Type of resource. For more information, go to Amazon * Web Services Resource Types Reference in the CloudFormation User Guide.

*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

Type of resource. For more information, go to Amazon * Web Services Resource Types Reference in the CloudFormation User Guide.

*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

Type of resource. For more information, go to Amazon * Web Services Resource Types Reference in the CloudFormation User Guide.

*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *

Type of resource. For more information, go to Amazon * Web Services Resource Types Reference in the CloudFormation User Guide.

*/ inline StackInstanceResourceDriftsSummary& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

Type of resource. For more information, go to Amazon * Web Services Resource Types Reference in the CloudFormation User Guide.

*/ inline StackInstanceResourceDriftsSummary& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

Type of resource. For more information, go to Amazon * Web Services Resource Types Reference in the CloudFormation User Guide.

*/ inline StackInstanceResourceDriftsSummary& WithResourceType(const char* value) { SetResourceType(value); return *this;} /** *

Status of the actual configuration of the resource compared to its expected * configuration. These will be present only for resources whose * StackInstanceResourceDriftStatus is MODIFIED.

*/ inline const Aws::Vector& GetPropertyDifferences() const{ return m_propertyDifferences; } /** *

Status of the actual configuration of the resource compared to its expected * configuration. These will be present only for resources whose * StackInstanceResourceDriftStatus is MODIFIED.

*/ inline bool PropertyDifferencesHasBeenSet() const { return m_propertyDifferencesHasBeenSet; } /** *

Status of the actual configuration of the resource compared to its expected * configuration. These will be present only for resources whose * StackInstanceResourceDriftStatus is MODIFIED.

*/ inline void SetPropertyDifferences(const Aws::Vector& value) { m_propertyDifferencesHasBeenSet = true; m_propertyDifferences = value; } /** *

Status of the actual configuration of the resource compared to its expected * configuration. These will be present only for resources whose * StackInstanceResourceDriftStatus is MODIFIED.

*/ inline void SetPropertyDifferences(Aws::Vector&& value) { m_propertyDifferencesHasBeenSet = true; m_propertyDifferences = std::move(value); } /** *

Status of the actual configuration of the resource compared to its expected * configuration. These will be present only for resources whose * StackInstanceResourceDriftStatus is MODIFIED.

*/ inline StackInstanceResourceDriftsSummary& WithPropertyDifferences(const Aws::Vector& value) { SetPropertyDifferences(value); return *this;} /** *

Status of the actual configuration of the resource compared to its expected * configuration. These will be present only for resources whose * StackInstanceResourceDriftStatus is MODIFIED.

*/ inline StackInstanceResourceDriftsSummary& WithPropertyDifferences(Aws::Vector&& value) { SetPropertyDifferences(std::move(value)); return *this;} /** *

Status of the actual configuration of the resource compared to its expected * configuration. These will be present only for resources whose * StackInstanceResourceDriftStatus is MODIFIED.

*/ inline StackInstanceResourceDriftsSummary& AddPropertyDifferences(const PropertyDifference& value) { m_propertyDifferencesHasBeenSet = true; m_propertyDifferences.push_back(value); return *this; } /** *

Status of the actual configuration of the resource compared to its expected * configuration. These will be present only for resources whose * StackInstanceResourceDriftStatus is MODIFIED.

*/ inline StackInstanceResourceDriftsSummary& AddPropertyDifferences(PropertyDifference&& value) { m_propertyDifferencesHasBeenSet = true; m_propertyDifferences.push_back(std::move(value)); return *this; } /** *

The drift status of the resource in a stack instance.

  • * DELETED: The resource differs from its expected template * configuration in that the resource has been deleted.

  • * MODIFIED: One or more resource properties differ from their * expected template values.

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

    *
  • NOT_CHECKED: CloudFormation doesn't currently return * this value.

*/ inline const StackResourceDriftStatus& GetStackResourceDriftStatus() const{ return m_stackResourceDriftStatus; } /** *

The drift status of the resource in a stack instance.

  • * DELETED: The resource differs from its expected template * configuration in that the resource has been deleted.

  • * MODIFIED: One or more resource properties differ from their * expected template values.

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

    *
  • NOT_CHECKED: CloudFormation doesn't currently return * this value.

*/ inline bool StackResourceDriftStatusHasBeenSet() const { return m_stackResourceDriftStatusHasBeenSet; } /** *

The drift status of the resource in a stack instance.

  • * DELETED: The resource differs from its expected template * configuration in that the resource has been deleted.

  • * MODIFIED: One or more resource properties differ from their * expected template values.

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

    *
  • NOT_CHECKED: CloudFormation doesn't currently return * this value.

*/ inline void SetStackResourceDriftStatus(const StackResourceDriftStatus& value) { m_stackResourceDriftStatusHasBeenSet = true; m_stackResourceDriftStatus = value; } /** *

The drift status of the resource in a stack instance.

  • * DELETED: The resource differs from its expected template * configuration in that the resource has been deleted.

  • * MODIFIED: One or more resource properties differ from their * expected template values.

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

    *
  • NOT_CHECKED: CloudFormation doesn't currently return * this value.

*/ inline void SetStackResourceDriftStatus(StackResourceDriftStatus&& value) { m_stackResourceDriftStatusHasBeenSet = true; m_stackResourceDriftStatus = std::move(value); } /** *

The drift status of the resource in a stack instance.

  • * DELETED: The resource differs from its expected template * configuration in that the resource has been deleted.

  • * MODIFIED: One or more resource properties differ from their * expected template values.

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

    *
  • NOT_CHECKED: CloudFormation doesn't currently return * this value.

*/ inline StackInstanceResourceDriftsSummary& WithStackResourceDriftStatus(const StackResourceDriftStatus& value) { SetStackResourceDriftStatus(value); return *this;} /** *

The drift status of the resource in a stack instance.

  • * DELETED: The resource differs from its expected template * configuration in that the resource has been deleted.

  • * MODIFIED: One or more resource properties differ from their * expected template values.

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

    *
  • NOT_CHECKED: CloudFormation doesn't currently return * this value.

*/ inline StackInstanceResourceDriftsSummary& WithStackResourceDriftStatus(StackResourceDriftStatus&& value) { SetStackResourceDriftStatus(std::move(value)); return *this;} /** *

Time at which the stack instance drift detection operation was initiated.

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

Time at which the stack instance drift detection operation was initiated.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

Time at which the stack instance drift detection operation was initiated.

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

Time at which the stack instance drift detection operation was initiated.

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

Time at which the stack instance drift detection operation was initiated.

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

Time at which the stack instance drift detection operation was initiated.

*/ inline StackInstanceResourceDriftsSummary& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} private: Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::String m_logicalResourceId; bool m_logicalResourceIdHasBeenSet = false; Aws::String m_physicalResourceId; bool m_physicalResourceIdHasBeenSet = false; Aws::Vector m_physicalResourceIdContext; bool m_physicalResourceIdContextHasBeenSet = false; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::Vector m_propertyDifferences; bool m_propertyDifferencesHasBeenSet = false; StackResourceDriftStatus m_stackResourceDriftStatus; bool m_stackResourceDriftStatusHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws