/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFormation { namespace Model { /** *

The field that CloudFormation will change, such as the name of a resource's * property, and whether the resource will be recreated.

See Also:

* AWS * API Reference

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

Indicates which resource attribute is triggering this update, such as a * change in the resource attribute's Metadata, * Properties, or Tags.

*/ inline const ResourceAttribute& GetAttribute() const{ return m_attribute; } /** *

Indicates which resource attribute is triggering this update, such as a * change in the resource attribute's Metadata, * Properties, or Tags.

*/ inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } /** *

Indicates which resource attribute is triggering this update, such as a * change in the resource attribute's Metadata, * Properties, or Tags.

*/ inline void SetAttribute(const ResourceAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; } /** *

Indicates which resource attribute is triggering this update, such as a * change in the resource attribute's Metadata, * Properties, or Tags.

*/ inline void SetAttribute(ResourceAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } /** *

Indicates which resource attribute is triggering this update, such as a * change in the resource attribute's Metadata, * Properties, or Tags.

*/ inline ResourceTargetDefinition& WithAttribute(const ResourceAttribute& value) { SetAttribute(value); return *this;} /** *

Indicates which resource attribute is triggering this update, such as a * change in the resource attribute's Metadata, * Properties, or Tags.

*/ inline ResourceTargetDefinition& WithAttribute(ResourceAttribute&& value) { SetAttribute(std::move(value)); return *this;} /** *

If the Attribute value is Properties, the name of * the property. For all other attributes, the value is null.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

If the Attribute value is Properties, the name of * the property. For all other attributes, the value is null.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

If the Attribute value is Properties, the name of * the property. For all other attributes, the value is null.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

If the Attribute value is Properties, the name of * the property. For all other attributes, the value is null.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

If the Attribute value is Properties, the name of * the property. For all other attributes, the value is null.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

If the Attribute value is Properties, the name of * the property. For all other attributes, the value is null.

*/ inline ResourceTargetDefinition& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

If the Attribute value is Properties, the name of * the property. For all other attributes, the value is null.

*/ inline ResourceTargetDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

If the Attribute value is Properties, the name of * the property. For all other attributes, the value is null.

*/ inline ResourceTargetDefinition& WithName(const char* value) { SetName(value); return *this;} /** *

If the Attribute value is Properties, indicates * whether a change to this property causes the resource to be recreated. The value * can be Never, Always, or Conditionally. * To determine the conditions for a Conditionally recreation, see the * update behavior for that property * in the CloudFormation User Guide.

*/ inline const RequiresRecreation& GetRequiresRecreation() const{ return m_requiresRecreation; } /** *

If the Attribute value is Properties, indicates * whether a change to this property causes the resource to be recreated. The value * can be Never, Always, or Conditionally. * To determine the conditions for a Conditionally recreation, see the * update behavior for that property * in the CloudFormation User Guide.

*/ inline bool RequiresRecreationHasBeenSet() const { return m_requiresRecreationHasBeenSet; } /** *

If the Attribute value is Properties, indicates * whether a change to this property causes the resource to be recreated. The value * can be Never, Always, or Conditionally. * To determine the conditions for a Conditionally recreation, see the * update behavior for that property * in the CloudFormation User Guide.

*/ inline void SetRequiresRecreation(const RequiresRecreation& value) { m_requiresRecreationHasBeenSet = true; m_requiresRecreation = value; } /** *

If the Attribute value is Properties, indicates * whether a change to this property causes the resource to be recreated. The value * can be Never, Always, or Conditionally. * To determine the conditions for a Conditionally recreation, see the * update behavior for that property * in the CloudFormation User Guide.

*/ inline void SetRequiresRecreation(RequiresRecreation&& value) { m_requiresRecreationHasBeenSet = true; m_requiresRecreation = std::move(value); } /** *

If the Attribute value is Properties, indicates * whether a change to this property causes the resource to be recreated. The value * can be Never, Always, or Conditionally. * To determine the conditions for a Conditionally recreation, see the * update behavior for that property * in the CloudFormation User Guide.

*/ inline ResourceTargetDefinition& WithRequiresRecreation(const RequiresRecreation& value) { SetRequiresRecreation(value); return *this;} /** *

If the Attribute value is Properties, indicates * whether a change to this property causes the resource to be recreated. The value * can be Never, Always, or Conditionally. * To determine the conditions for a Conditionally recreation, see the * update behavior for that property * in the CloudFormation User Guide.

*/ inline ResourceTargetDefinition& WithRequiresRecreation(RequiresRecreation&& value) { SetRequiresRecreation(std::move(value)); return *this;} private: ResourceAttribute m_attribute; bool m_attributeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; RequiresRecreation m_requiresRecreation; bool m_requiresRecreationHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws