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

The organization under which the resource exists.

*/ inline const Aws::String& GetOrganizationId() const{ return m_organizationId; } /** *

The organization under which the resource exists.

*/ inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; } /** *

The organization under which the resource exists.

*/ inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; } /** *

The organization under which the resource exists.

*/ inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); } /** *

The organization under which the resource exists.

*/ inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); } /** *

The organization under which the resource exists.

*/ inline AssociateDelegateToResourceRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;} /** *

The organization under which the resource exists.

*/ inline AssociateDelegateToResourceRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;} /** *

The organization under which the resource exists.

*/ inline AssociateDelegateToResourceRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;} /** *

The resource for which members (users or groups) are associated.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The resource for which members (users or groups) are associated.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The resource for which members (users or groups) are associated.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The resource for which members (users or groups) are associated.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The resource for which members (users or groups) are associated.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The resource for which members (users or groups) are associated.

*/ inline AssociateDelegateToResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The resource for which members (users or groups) are associated.

*/ inline AssociateDelegateToResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The resource for which members (users or groups) are associated.

*/ inline AssociateDelegateToResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

The member (user or group) to associate to the resource.

*/ inline const Aws::String& GetEntityId() const{ return m_entityId; } /** *

The member (user or group) to associate to the resource.

*/ inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; } /** *

The member (user or group) to associate to the resource.

*/ inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; } /** *

The member (user or group) to associate to the resource.

*/ inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); } /** *

The member (user or group) to associate to the resource.

*/ inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); } /** *

The member (user or group) to associate to the resource.

*/ inline AssociateDelegateToResourceRequest& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;} /** *

The member (user or group) to associate to the resource.

*/ inline AssociateDelegateToResourceRequest& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;} /** *

The member (user or group) to associate to the resource.

*/ inline AssociateDelegateToResourceRequest& WithEntityId(const char* value) { SetEntityId(value); return *this;} private: Aws::String m_organizationId; bool m_organizationIdHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::String m_entityId; bool m_entityIdHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws