/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace CloudDirectory { namespace Model { /** */ class AddFacetToObjectRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API AddFacetToObjectRequest(); // 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 "AddFacetToObject"; } AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override; AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where the object resides. For more information, see arns.

*/ inline const Aws::String& GetDirectoryArn() const{ return m_directoryArn; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where the object resides. For more information, see arns.

*/ inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where the object resides. For more information, see arns.

*/ inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where the object resides. For more information, see arns.

*/ inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where the object resides. For more information, see arns.

*/ inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); } /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where the object resides. For more information, see arns.

*/ inline AddFacetToObjectRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where the object resides. For more information, see arns.

*/ inline AddFacetToObjectRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that is associated with the Directory * where the object resides. For more information, see arns.

*/ inline AddFacetToObjectRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;} /** *

Identifiers for the facet that you are adding to the object. See * SchemaFacet for details.

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

Identifiers for the facet that you are adding to the object. See * SchemaFacet for details.

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

Identifiers for the facet that you are adding to the object. See * SchemaFacet for details.

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

Identifiers for the facet that you are adding to the object. See * SchemaFacet for details.

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

Identifiers for the facet that you are adding to the object. See * SchemaFacet for details.

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

Identifiers for the facet that you are adding to the object. See * SchemaFacet for details.

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

Attributes on the facet that you are adding to the object.

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

Attributes on the facet that you are adding to the object.

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

Attributes on the facet that you are adding to the object.

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

Attributes on the facet that you are adding to the object.

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

Attributes on the facet that you are adding to the object.

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

Attributes on the facet that you are adding to the object.

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

Attributes on the facet that you are adding to the object.

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

Attributes on the facet that you are adding to the object.

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

A reference to the object you are adding the specified facet to.

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

A reference to the object you are adding the specified facet to.

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

A reference to the object you are adding the specified facet to.

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

A reference to the object you are adding the specified facet to.

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

A reference to the object you are adding the specified facet to.

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

A reference to the object you are adding the specified facet to.

*/ inline AddFacetToObjectRequest& WithObjectReference(ObjectReference&& value) { SetObjectReference(std::move(value)); return *this;} private: Aws::String m_directoryArn; bool m_directoryArnHasBeenSet = false; 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