/** * 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 CloudDirectory { namespace Model { /** */ class RemoveFacetFromObjectRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API RemoveFacetFromObjectRequest(); // 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 "RemoveFacetFromObject"; } AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override; AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the directory in which the object resides.

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

The ARN of the directory in which the object resides.

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

The ARN of the directory in which the object resides.

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

The ARN of the directory in which the object resides.

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

The ARN of the directory in which the object resides.

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

The ARN of the directory in which the object resides.

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

The ARN of the directory in which the object resides.

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

The ARN of the directory in which the object resides.

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

The facet to remove. See SchemaFacet for details.

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

The facet to remove. See SchemaFacet for details.

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

The facet to remove. See SchemaFacet for details.

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

The facet to remove. See SchemaFacet for details.

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

The facet to remove. See SchemaFacet for details.

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

The facet to remove. See SchemaFacet for details.

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

A reference to the object to remove the facet from.

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

A reference to the object to remove the facet from.

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

A reference to the object to remove the facet from.

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

A reference to the object to remove the facet from.

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

A reference to the object to remove the facet from.

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

A reference to the object to remove the facet from.

*/ inline RemoveFacetFromObjectRequest& 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; ObjectReference m_objectReference; bool m_objectReferenceHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws