/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/clouddirectory/CloudDirectory_EXPORTS.h> #include <aws/clouddirectory/CloudDirectoryRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/clouddirectory/model/ObjectReference.h> #include <aws/clouddirectory/model/ConsistencyLevel.h> #include <aws/clouddirectory/model/SchemaFacet.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <utility> namespace Aws { namespace CloudDirectory { namespace Model { /** */ class GetObjectAttributesRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API GetObjectAttributesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetObjectAttributes"; } AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override; AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** * <p>The Amazon Resource Name (ARN) that is associated with the <a>Directory</a> * where the object resides.</p> */ inline const Aws::String& GetDirectoryArn() const{ return m_directoryArn; } /** * <p>The Amazon Resource Name (ARN) that is associated with the <a>Directory</a> * where the object resides.</p> */ inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; } /** * <p>The Amazon Resource Name (ARN) that is associated with the <a>Directory</a> * where the object resides.</p> */ inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; } /** * <p>The Amazon Resource Name (ARN) that is associated with the <a>Directory</a> * where the object resides.</p> */ inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); } /** * <p>The Amazon Resource Name (ARN) that is associated with the <a>Directory</a> * where the object resides.</p> */ inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); } /** * <p>The Amazon Resource Name (ARN) that is associated with the <a>Directory</a> * where the object resides.</p> */ inline GetObjectAttributesRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;} /** * <p>The Amazon Resource Name (ARN) that is associated with the <a>Directory</a> * where the object resides.</p> */ inline GetObjectAttributesRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;} /** * <p>The Amazon Resource Name (ARN) that is associated with the <a>Directory</a> * where the object resides.</p> */ inline GetObjectAttributesRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;} /** * <p>Reference that identifies the object whose attributes will be retrieved.</p> */ inline const ObjectReference& GetObjectReference() const{ return m_objectReference; } /** * <p>Reference that identifies the object whose attributes will be retrieved.</p> */ inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; } /** * <p>Reference that identifies the object whose attributes will be retrieved.</p> */ inline void SetObjectReference(const ObjectReference& value) { m_objectReferenceHasBeenSet = true; m_objectReference = value; } /** * <p>Reference that identifies the object whose attributes will be retrieved.</p> */ inline void SetObjectReference(ObjectReference&& value) { m_objectReferenceHasBeenSet = true; m_objectReference = std::move(value); } /** * <p>Reference that identifies the object whose attributes will be retrieved.</p> */ inline GetObjectAttributesRequest& WithObjectReference(const ObjectReference& value) { SetObjectReference(value); return *this;} /** * <p>Reference that identifies the object whose attributes will be retrieved.</p> */ inline GetObjectAttributesRequest& WithObjectReference(ObjectReference&& value) { SetObjectReference(std::move(value)); return *this;} /** * <p>The consistency level at which to retrieve the attributes on an object.</p> */ inline const ConsistencyLevel& GetConsistencyLevel() const{ return m_consistencyLevel; } /** * <p>The consistency level at which to retrieve the attributes on an object.</p> */ inline bool ConsistencyLevelHasBeenSet() const { return m_consistencyLevelHasBeenSet; } /** * <p>The consistency level at which to retrieve the attributes on an object.</p> */ inline void SetConsistencyLevel(const ConsistencyLevel& value) { m_consistencyLevelHasBeenSet = true; m_consistencyLevel = value; } /** * <p>The consistency level at which to retrieve the attributes on an object.</p> */ inline void SetConsistencyLevel(ConsistencyLevel&& value) { m_consistencyLevelHasBeenSet = true; m_consistencyLevel = std::move(value); } /** * <p>The consistency level at which to retrieve the attributes on an object.</p> */ inline GetObjectAttributesRequest& WithConsistencyLevel(const ConsistencyLevel& value) { SetConsistencyLevel(value); return *this;} /** * <p>The consistency level at which to retrieve the attributes on an object.</p> */ inline GetObjectAttributesRequest& WithConsistencyLevel(ConsistencyLevel&& value) { SetConsistencyLevel(std::move(value)); return *this;} /** * <p>Identifier for the facet whose attributes will be retrieved. See * <a>SchemaFacet</a> for details.</p> */ inline const SchemaFacet& GetSchemaFacet() const{ return m_schemaFacet; } /** * <p>Identifier for the facet whose attributes will be retrieved. See * <a>SchemaFacet</a> for details.</p> */ inline bool SchemaFacetHasBeenSet() const { return m_schemaFacetHasBeenSet; } /** * <p>Identifier for the facet whose attributes will be retrieved. See * <a>SchemaFacet</a> for details.</p> */ inline void SetSchemaFacet(const SchemaFacet& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = value; } /** * <p>Identifier for the facet whose attributes will be retrieved. See * <a>SchemaFacet</a> for details.</p> */ inline void SetSchemaFacet(SchemaFacet&& value) { m_schemaFacetHasBeenSet = true; m_schemaFacet = std::move(value); } /** * <p>Identifier for the facet whose attributes will be retrieved. See * <a>SchemaFacet</a> for details.</p> */ inline GetObjectAttributesRequest& WithSchemaFacet(const SchemaFacet& value) { SetSchemaFacet(value); return *this;} /** * <p>Identifier for the facet whose attributes will be retrieved. See * <a>SchemaFacet</a> for details.</p> */ inline GetObjectAttributesRequest& WithSchemaFacet(SchemaFacet&& value) { SetSchemaFacet(std::move(value)); return *this;} /** * <p>List of attribute names whose values will be retrieved.</p> */ inline const Aws::Vector<Aws::String>& GetAttributeNames() const{ return m_attributeNames; } /** * <p>List of attribute names whose values will be retrieved.</p> */ inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; } /** * <p>List of attribute names whose values will be retrieved.</p> */ inline void SetAttributeNames(const Aws::Vector<Aws::String>& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; } /** * <p>List of attribute names whose values will be retrieved.</p> */ inline void SetAttributeNames(Aws::Vector<Aws::String>&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); } /** * <p>List of attribute names whose values will be retrieved.</p> */ inline GetObjectAttributesRequest& WithAttributeNames(const Aws::Vector<Aws::String>& value) { SetAttributeNames(value); return *this;} /** * <p>List of attribute names whose values will be retrieved.</p> */ inline GetObjectAttributesRequest& WithAttributeNames(Aws::Vector<Aws::String>&& value) { SetAttributeNames(std::move(value)); return *this;} /** * <p>List of attribute names whose values will be retrieved.</p> */ inline GetObjectAttributesRequest& AddAttributeNames(const Aws::String& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; } /** * <p>List of attribute names whose values will be retrieved.</p> */ inline GetObjectAttributesRequest& AddAttributeNames(Aws::String&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; } /** * <p>List of attribute names whose values will be retrieved.</p> */ inline GetObjectAttributesRequest& AddAttributeNames(const char* value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; } private: Aws::String m_directoryArn; bool m_directoryArnHasBeenSet = false; ObjectReference m_objectReference; bool m_objectReferenceHasBeenSet = false; ConsistencyLevel m_consistencyLevel; bool m_consistencyLevelHasBeenSet = false; SchemaFacet m_schemaFacet; bool m_schemaFacetHasBeenSet = false; Aws::Vector<Aws::String> m_attributeNames; bool m_attributeNamesHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws