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

The action to take on a typed link attribute value. Updates are only * supported for attributes which don’t contribute to link identity.

See * Also:

AWS * API Reference

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

A type that can be either UPDATE_OR_CREATE or * DELETE.

*/ inline const UpdateActionType& GetAttributeActionType() const{ return m_attributeActionType; } /** *

A type that can be either UPDATE_OR_CREATE or * DELETE.

*/ inline bool AttributeActionTypeHasBeenSet() const { return m_attributeActionTypeHasBeenSet; } /** *

A type that can be either UPDATE_OR_CREATE or * DELETE.

*/ inline void SetAttributeActionType(const UpdateActionType& value) { m_attributeActionTypeHasBeenSet = true; m_attributeActionType = value; } /** *

A type that can be either UPDATE_OR_CREATE or * DELETE.

*/ inline void SetAttributeActionType(UpdateActionType&& value) { m_attributeActionTypeHasBeenSet = true; m_attributeActionType = std::move(value); } /** *

A type that can be either UPDATE_OR_CREATE or * DELETE.

*/ inline LinkAttributeAction& WithAttributeActionType(const UpdateActionType& value) { SetAttributeActionType(value); return *this;} /** *

A type that can be either UPDATE_OR_CREATE or * DELETE.

*/ inline LinkAttributeAction& WithAttributeActionType(UpdateActionType&& value) { SetAttributeActionType(std::move(value)); return *this;} /** *

The value that you want to update to.

*/ inline const TypedAttributeValue& GetAttributeUpdateValue() const{ return m_attributeUpdateValue; } /** *

The value that you want to update to.

*/ inline bool AttributeUpdateValueHasBeenSet() const { return m_attributeUpdateValueHasBeenSet; } /** *

The value that you want to update to.

*/ inline void SetAttributeUpdateValue(const TypedAttributeValue& value) { m_attributeUpdateValueHasBeenSet = true; m_attributeUpdateValue = value; } /** *

The value that you want to update to.

*/ inline void SetAttributeUpdateValue(TypedAttributeValue&& value) { m_attributeUpdateValueHasBeenSet = true; m_attributeUpdateValue = std::move(value); } /** *

The value that you want to update to.

*/ inline LinkAttributeAction& WithAttributeUpdateValue(const TypedAttributeValue& value) { SetAttributeUpdateValue(value); return *this;} /** *

The value that you want to update to.

*/ inline LinkAttributeAction& WithAttributeUpdateValue(TypedAttributeValue&& value) { SetAttributeUpdateValue(std::move(value)); return *this;} private: UpdateActionType m_attributeActionType; bool m_attributeActionTypeHasBeenSet = false; TypedAttributeValue m_attributeUpdateValue; bool m_attributeUpdateValueHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws