/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CloudDirectory { namespace Model { /** */ class DetachObjectRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API DetachObjectRequest(); // 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 "DetachObject"; } 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 objects reside. 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 objects reside. For more information, see arns.

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

The Amazon Resource Name (ARN) that is associated with the Directory * where objects reside. 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 objects reside. 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 objects reside. 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 objects reside. For more information, see arns.

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

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

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

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

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

The parent reference from which the object with the specified link name is * detached.

*/ inline const ObjectReference& GetParentReference() const{ return m_parentReference; } /** *

The parent reference from which the object with the specified link name is * detached.

*/ inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; } /** *

The parent reference from which the object with the specified link name is * detached.

*/ inline void SetParentReference(const ObjectReference& value) { m_parentReferenceHasBeenSet = true; m_parentReference = value; } /** *

The parent reference from which the object with the specified link name is * detached.

*/ inline void SetParentReference(ObjectReference&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::move(value); } /** *

The parent reference from which the object with the specified link name is * detached.

*/ inline DetachObjectRequest& WithParentReference(const ObjectReference& value) { SetParentReference(value); return *this;} /** *

The parent reference from which the object with the specified link name is * detached.

*/ inline DetachObjectRequest& WithParentReference(ObjectReference&& value) { SetParentReference(std::move(value)); return *this;} /** *

The link name associated with the object that needs to be detached.

*/ inline const Aws::String& GetLinkName() const{ return m_linkName; } /** *

The link name associated with the object that needs to be detached.

*/ inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; } /** *

The link name associated with the object that needs to be detached.

*/ inline void SetLinkName(const Aws::String& value) { m_linkNameHasBeenSet = true; m_linkName = value; } /** *

The link name associated with the object that needs to be detached.

*/ inline void SetLinkName(Aws::String&& value) { m_linkNameHasBeenSet = true; m_linkName = std::move(value); } /** *

The link name associated with the object that needs to be detached.

*/ inline void SetLinkName(const char* value) { m_linkNameHasBeenSet = true; m_linkName.assign(value); } /** *

The link name associated with the object that needs to be detached.

*/ inline DetachObjectRequest& WithLinkName(const Aws::String& value) { SetLinkName(value); return *this;} /** *

The link name associated with the object that needs to be detached.

*/ inline DetachObjectRequest& WithLinkName(Aws::String&& value) { SetLinkName(std::move(value)); return *this;} /** *

The link name associated with the object that needs to be detached.

*/ inline DetachObjectRequest& WithLinkName(const char* value) { SetLinkName(value); return *this;} private: Aws::String m_directoryArn; bool m_directoryArnHasBeenSet = false; ObjectReference m_parentReference; bool m_parentReferenceHasBeenSet = false; Aws::String m_linkName; bool m_linkNameHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws