/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 batch add facet to object operation.

See * Also:

AWS * API Reference

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

Represents the facet being added to the object.

*/ inline const SchemaFacet& GetSchemaFacet() const{ return m_schemaFacet; } /** *

Represents the facet being added to the object.

*/ inline bool SchemaFacetHasBeenSet() const { return m_schemaFacetHasBeenSet; } /** *

Represents the facet being added to the object.

*/ inline void SetSchemaFacet(const SchemaFacet& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = value; } /** *

Represents the facet being added to the object.

*/ inline void SetSchemaFacet(SchemaFacet&& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = std::move(value); } /** *

Represents the facet being added to the object.

*/ inline BatchAddFacetToObject& WithSchemaFacet(const SchemaFacet& value) { SetSchemaFacet(value); return *this;} /** *

Represents the facet being added to the object.

*/ inline BatchAddFacetToObject& WithSchemaFacet(SchemaFacet&& value) { SetSchemaFacet(std::move(value)); return *this;} /** *

The attributes to set on the object.

*/ inline const Aws::Vector& GetObjectAttributeList() const{ return m_objectAttributeList; } /** *

The attributes to set on the object.

*/ inline bool ObjectAttributeListHasBeenSet() const { return m_objectAttributeListHasBeenSet; } /** *

The attributes to set on the object.

*/ inline void SetObjectAttributeList(const Aws::Vector& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList = value; } /** *

The attributes to set on the object.

*/ inline void SetObjectAttributeList(Aws::Vector&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList = std::move(value); } /** *

The attributes to set on the object.

*/ inline BatchAddFacetToObject& WithObjectAttributeList(const Aws::Vector& value) { SetObjectAttributeList(value); return *this;} /** *

The attributes to set on the object.

*/ inline BatchAddFacetToObject& WithObjectAttributeList(Aws::Vector&& value) { SetObjectAttributeList(std::move(value)); return *this;} /** *

The attributes to set on the object.

*/ inline BatchAddFacetToObject& AddObjectAttributeList(const AttributeKeyAndValue& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList.push_back(value); return *this; } /** *

The attributes to set on the object.

*/ inline BatchAddFacetToObject& AddObjectAttributeList(AttributeKeyAndValue&& value) { m_objectAttributeListHasBeenSet = true; m_objectAttributeList.push_back(std::move(value)); return *this; } /** *

A reference to the object being mutated.

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

A reference to the object being mutated.

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

A reference to the object being mutated.

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

A reference to the object being mutated.

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

A reference to the object being mutated.

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

A reference to the object being mutated.

*/ inline BatchAddFacetToObject& WithObjectReference(ObjectReference&& value) { SetObjectReference(std::move(value)); return *this;} private: SchemaFacet m_schemaFacet; bool m_schemaFacetHasBeenSet = false; Aws::Vector m_objectAttributeList; bool m_objectAttributeListHasBeenSet = false; ObjectReference m_objectReference; bool m_objectReferenceHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws