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

Information about a change to a resource attribute.

See Also:

* AWS * API Reference

*/ class ResourceTargetDefinition { public: AWS_SERVICECATALOG_API ResourceTargetDefinition(); AWS_SERVICECATALOG_API ResourceTargetDefinition(Aws::Utils::Json::JsonView jsonValue); AWS_SERVICECATALOG_API ResourceTargetDefinition& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The attribute to be changed.

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

The attribute to be changed.

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

The attribute to be changed.

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

The attribute to be changed.

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

The attribute to be changed.

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

The attribute to be changed.

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

If the attribute is Properties, the value is the name of the * property. Otherwise, the value is null.

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

If the attribute is Properties, the value is the name of the * property. Otherwise, the value is null.

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

If the attribute is Properties, the value is the name of the * property. Otherwise, the value is null.

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

If the attribute is Properties, the value is the name of the * property. Otherwise, the value is null.

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

If the attribute is Properties, the value is the name of the * property. Otherwise, the value is null.

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

If the attribute is Properties, the value is the name of the * property. Otherwise, the value is null.

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

If the attribute is Properties, the value is the name of the * property. Otherwise, the value is null.

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

If the attribute is Properties, the value is the name of the * property. Otherwise, the value is null.

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

If the attribute is Properties, indicates whether a change to * this property causes the resource to be re-created.

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

If the attribute is Properties, indicates whether a change to * this property causes the resource to be re-created.

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

If the attribute is Properties, indicates whether a change to * this property causes the resource to be re-created.

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

If the attribute is Properties, indicates whether a change to * this property causes the resource to be re-created.

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

If the attribute is Properties, indicates whether a change to * this property causes the resource to be re-created.

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

If the attribute is Properties, indicates whether a change to * this property causes the resource to be re-created.

*/ 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 ServiceCatalog } // namespace Aws