/** * 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 AttachObjectRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API AttachObjectRequest(); // 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 "AttachObject"; } AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override; AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The parent object reference.

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

The parent object reference.

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

The parent object reference.

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

The parent object reference.

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

The parent object reference.

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

The parent object reference.

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

The child object reference to be attached to the object.

*/ inline const ObjectReference& GetChildReference() const{ return m_childReference; } /** *

The child object reference to be attached to the object.

*/ inline bool ChildReferenceHasBeenSet() const { return m_childReferenceHasBeenSet; } /** *

The child object reference to be attached to the object.

*/ inline void SetChildReference(const ObjectReference& value) { m_childReferenceHasBeenSet = true; m_childReference = value; } /** *

The child object reference to be attached to the object.

*/ inline void SetChildReference(ObjectReference&& value) { m_childReferenceHasBeenSet = true; m_childReference = std::move(value); } /** *

The child object reference to be attached to the object.

*/ inline AttachObjectRequest& WithChildReference(const ObjectReference& value) { SetChildReference(value); return *this;} /** *

The child object reference to be attached to the object.

*/ inline AttachObjectRequest& WithChildReference(ObjectReference&& value) { SetChildReference(std::move(value)); return *this;} /** *

The link name with which the child object is attached to the parent.

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

The link name with which the child object is attached to the parent.

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

The link name with which the child object is attached to the parent.

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

The link name with which the child object is attached to the parent.

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

The link name with which the child object is attached to the parent.

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

The link name with which the child object is attached to the parent.

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

The link name with which the child object is attached to the parent.

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

The link name with which the child object is attached to the parent.

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