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

Retrieves attributes within a facet that are associated with an object inside * an BatchRead operation. For more information, see * GetObjectAttributes and BatchReadRequest$Operations.

See * Also:

AWS * API Reference

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

Reference that identifies the object whose attributes will be retrieved.

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

Reference that identifies the object whose attributes will be retrieved.

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

Reference that identifies the object whose attributes will be retrieved.

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

Reference that identifies the object whose attributes will be retrieved.

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

Reference that identifies the object whose attributes will be retrieved.

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

Reference that identifies the object whose attributes will be retrieved.

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

Identifier for the facet whose attributes will be retrieved. See * SchemaFacet for details.

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

Identifier for the facet whose attributes will be retrieved. See * SchemaFacet for details.

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

Identifier for the facet whose attributes will be retrieved. See * SchemaFacet for details.

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

Identifier for the facet whose attributes will be retrieved. See * SchemaFacet for details.

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

Identifier for the facet whose attributes will be retrieved. See * SchemaFacet for details.

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

Identifier for the facet whose attributes will be retrieved. See * SchemaFacet for details.

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

List of attribute names whose values will be retrieved.

*/ inline const Aws::Vector& GetAttributeNames() const{ return m_attributeNames; } /** *

List of attribute names whose values will be retrieved.

*/ inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; } /** *

List of attribute names whose values will be retrieved.

*/ inline void SetAttributeNames(const Aws::Vector& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; } /** *

List of attribute names whose values will be retrieved.

*/ inline void SetAttributeNames(Aws::Vector&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); } /** *

List of attribute names whose values will be retrieved.

*/ inline BatchGetObjectAttributes& WithAttributeNames(const Aws::Vector& value) { SetAttributeNames(value); return *this;} /** *

List of attribute names whose values will be retrieved.

*/ inline BatchGetObjectAttributes& WithAttributeNames(Aws::Vector&& value) { SetAttributeNames(std::move(value)); return *this;} /** *

List of attribute names whose values will be retrieved.

*/ inline BatchGetObjectAttributes& AddAttributeNames(const Aws::String& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; } /** *

List of attribute names whose values will be retrieved.

*/ inline BatchGetObjectAttributes& AddAttributeNames(Aws::String&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; } /** *

List of attribute names whose values will be retrieved.

*/ inline BatchGetObjectAttributes& AddAttributeNames(const char* value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; } private: ObjectReference m_objectReference; bool m_objectReferenceHasBeenSet = false; SchemaFacet m_schemaFacet; bool m_schemaFacetHasBeenSet = false; Aws::Vector m_attributeNames; bool m_attributeNamesHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws