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

A structure that contains information used to update an * attribute.

See Also:

AWS * API Reference

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

The attribute to update.

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

The attribute to update.

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

The attribute to update.

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

The attribute to update.

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

The attribute to update.

*/ inline FacetAttributeUpdate& WithAttribute(const FacetAttribute& value) { SetAttribute(value); return *this;} /** *

The attribute to update.

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

The action to perform when updating the attribute.

*/ inline const UpdateActionType& GetAction() const{ return m_action; } /** *

The action to perform when updating the attribute.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

The action to perform when updating the attribute.

*/ inline void SetAction(const UpdateActionType& value) { m_actionHasBeenSet = true; m_action = value; } /** *

The action to perform when updating the attribute.

*/ inline void SetAction(UpdateActionType&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

The action to perform when updating the attribute.

*/ inline FacetAttributeUpdate& WithAction(const UpdateActionType& value) { SetAction(value); return *this;} /** *

The action to perform when updating the attribute.

*/ inline FacetAttributeUpdate& WithAction(UpdateActionType&& value) { SetAction(std::move(value)); return *this;} private: FacetAttribute m_attribute; bool m_attributeHasBeenSet = false; UpdateActionType m_action; bool m_actionHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws