/** * 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 { /** *

Structure that contains attribute update information.

See * Also:

AWS * API Reference

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

The key of the attribute being updated.

*/ inline const AttributeKey& GetObjectAttributeKey() const{ return m_objectAttributeKey; } /** *

The key of the attribute being updated.

*/ inline bool ObjectAttributeKeyHasBeenSet() const { return m_objectAttributeKeyHasBeenSet; } /** *

The key of the attribute being updated.

*/ inline void SetObjectAttributeKey(const AttributeKey& value) { m_objectAttributeKeyHasBeenSet = true; m_objectAttributeKey = value; } /** *

The key of the attribute being updated.

*/ inline void SetObjectAttributeKey(AttributeKey&& value) { m_objectAttributeKeyHasBeenSet = true; m_objectAttributeKey = std::move(value); } /** *

The key of the attribute being updated.

*/ inline ObjectAttributeUpdate& WithObjectAttributeKey(const AttributeKey& value) { SetObjectAttributeKey(value); return *this;} /** *

The key of the attribute being updated.

*/ inline ObjectAttributeUpdate& WithObjectAttributeKey(AttributeKey&& value) { SetObjectAttributeKey(std::move(value)); return *this;} /** *

The action to perform as part of the attribute update.

*/ inline const ObjectAttributeAction& GetObjectAttributeAction() const{ return m_objectAttributeAction; } /** *

The action to perform as part of the attribute update.

*/ inline bool ObjectAttributeActionHasBeenSet() const { return m_objectAttributeActionHasBeenSet; } /** *

The action to perform as part of the attribute update.

*/ inline void SetObjectAttributeAction(const ObjectAttributeAction& value) { m_objectAttributeActionHasBeenSet = true; m_objectAttributeAction = value; } /** *

The action to perform as part of the attribute update.

*/ inline void SetObjectAttributeAction(ObjectAttributeAction&& value) { m_objectAttributeActionHasBeenSet = true; m_objectAttributeAction = std::move(value); } /** *

The action to perform as part of the attribute update.

*/ inline ObjectAttributeUpdate& WithObjectAttributeAction(const ObjectAttributeAction& value) { SetObjectAttributeAction(value); return *this;} /** *

The action to perform as part of the attribute update.

*/ inline ObjectAttributeUpdate& WithObjectAttributeAction(ObjectAttributeAction&& value) { SetObjectAttributeAction(std::move(value)); return *this;} private: AttributeKey m_objectAttributeKey; bool m_objectAttributeKeyHasBeenSet = false; ObjectAttributeAction m_objectAttributeAction; bool m_objectAttributeActionHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws