/** * 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 CloudDirectory { namespace Model { /** *

Updates a given typed link’s attributes inside a BatchRead operation. * Attributes to be updated must not contribute to the typed link’s identity, as * defined by its IdentityAttributeOrder. For more information, see * UpdateLinkAttributes and * BatchReadRequest$Operations.

See Also:

AWS * API Reference

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

Allows a typed link specifier to be accepted as input.

*/ inline const TypedLinkSpecifier& GetTypedLinkSpecifier() const{ return m_typedLinkSpecifier; } /** *

Allows a typed link specifier to be accepted as input.

*/ inline bool TypedLinkSpecifierHasBeenSet() const { return m_typedLinkSpecifierHasBeenSet; } /** *

Allows a typed link specifier to be accepted as input.

*/ inline void SetTypedLinkSpecifier(const TypedLinkSpecifier& value) { m_typedLinkSpecifierHasBeenSet = true; m_typedLinkSpecifier = value; } /** *

Allows a typed link specifier to be accepted as input.

*/ inline void SetTypedLinkSpecifier(TypedLinkSpecifier&& value) { m_typedLinkSpecifierHasBeenSet = true; m_typedLinkSpecifier = std::move(value); } /** *

Allows a typed link specifier to be accepted as input.

*/ inline BatchUpdateLinkAttributes& WithTypedLinkSpecifier(const TypedLinkSpecifier& value) { SetTypedLinkSpecifier(value); return *this;} /** *

Allows a typed link specifier to be accepted as input.

*/ inline BatchUpdateLinkAttributes& WithTypedLinkSpecifier(TypedLinkSpecifier&& value) { SetTypedLinkSpecifier(std::move(value)); return *this;} /** *

The attributes update structure.

*/ inline const Aws::Vector& GetAttributeUpdates() const{ return m_attributeUpdates; } /** *

The attributes update structure.

*/ inline bool AttributeUpdatesHasBeenSet() const { return m_attributeUpdatesHasBeenSet; } /** *

The attributes update structure.

*/ inline void SetAttributeUpdates(const Aws::Vector& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = value; } /** *

The attributes update structure.

*/ inline void SetAttributeUpdates(Aws::Vector&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates = std::move(value); } /** *

The attributes update structure.

*/ inline BatchUpdateLinkAttributes& WithAttributeUpdates(const Aws::Vector& value) { SetAttributeUpdates(value); return *this;} /** *

The attributes update structure.

*/ inline BatchUpdateLinkAttributes& WithAttributeUpdates(Aws::Vector&& value) { SetAttributeUpdates(std::move(value)); return *this;} /** *

The attributes update structure.

*/ inline BatchUpdateLinkAttributes& AddAttributeUpdates(const LinkAttributeUpdate& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.push_back(value); return *this; } /** *

The attributes update structure.

*/ inline BatchUpdateLinkAttributes& AddAttributeUpdates(LinkAttributeUpdate&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.push_back(std::move(value)); return *this; } private: TypedLinkSpecifier m_typedLinkSpecifier; bool m_typedLinkSpecifierHasBeenSet = false; Aws::Vector m_attributeUpdates; bool m_attributeUpdatesHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws