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

Represents the output of a BatchUpdate operation.

See * Also:

AWS * API Reference

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

Reference that identifies the object.

*/ inline const ObjectReference& GetObjectReference() const{ return m_objectReference; } /** *

Reference that identifies the object.

*/ inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; } /** *

Reference that identifies the object.

*/ inline void SetObjectReference(const ObjectReference& value) { m_objectReferenceHasBeenSet = true; m_objectReference = value; } /** *

Reference that identifies the object.

*/ inline void SetObjectReference(ObjectReference&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::move(value); } /** *

Reference that identifies the object.

*/ inline BatchUpdateObjectAttributes& WithObjectReference(const ObjectReference& value) { SetObjectReference(value); return *this;} /** *

Reference that identifies the object.

*/ inline BatchUpdateObjectAttributes& WithObjectReference(ObjectReference&& value) { SetObjectReference(std::move(value)); return *this;} /** *

Attributes update structure.

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

Attributes update structure.

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

Attributes update structure.

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

Attributes update structure.

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

Attributes update structure.

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

Attributes update structure.

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

Attributes update structure.

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

Attributes update structure.

*/ inline BatchUpdateObjectAttributes& AddAttributeUpdates(ObjectAttributeUpdate&& value) { m_attributeUpdatesHasBeenSet = true; m_attributeUpdates.push_back(std::move(value)); return *this; } private: ObjectReference m_objectReference; bool m_objectReferenceHasBeenSet = false; Aws::Vector m_attributeUpdates; bool m_attributeUpdatesHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws