/** * 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 GetImpersonationRoleRequest : public WorkMailRequest { public: AWS_WORKMAIL_API GetImpersonationRoleRequest(); // 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 "GetImpersonationRole"; } AWS_WORKMAIL_API Aws::String SerializePayload() const override; AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The WorkMail organization from which to retrieve the impersonation role.

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

The WorkMail organization from which to retrieve the impersonation role.

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

The WorkMail organization from which to retrieve the impersonation role.

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

The WorkMail organization from which to retrieve the impersonation role.

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

The WorkMail organization from which to retrieve the impersonation role.

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

The WorkMail organization from which to retrieve the impersonation role.

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

The WorkMail organization from which to retrieve the impersonation role.

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

The WorkMail organization from which to retrieve the impersonation role.

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

The impersonation role ID to retrieve.

*/ inline const Aws::String& GetImpersonationRoleId() const{ return m_impersonationRoleId; } /** *

The impersonation role ID to retrieve.

*/ inline bool ImpersonationRoleIdHasBeenSet() const { return m_impersonationRoleIdHasBeenSet; } /** *

The impersonation role ID to retrieve.

*/ inline void SetImpersonationRoleId(const Aws::String& value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId = value; } /** *

The impersonation role ID to retrieve.

*/ inline void SetImpersonationRoleId(Aws::String&& value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId = std::move(value); } /** *

The impersonation role ID to retrieve.

*/ inline void SetImpersonationRoleId(const char* value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId.assign(value); } /** *

The impersonation role ID to retrieve.

*/ inline GetImpersonationRoleRequest& WithImpersonationRoleId(const Aws::String& value) { SetImpersonationRoleId(value); return *this;} /** *

The impersonation role ID to retrieve.

*/ inline GetImpersonationRoleRequest& WithImpersonationRoleId(Aws::String&& value) { SetImpersonationRoleId(std::move(value)); return *this;} /** *

The impersonation role ID to retrieve.

*/ inline GetImpersonationRoleRequest& WithImpersonationRoleId(const char* value) { SetImpersonationRoleId(value); return *this;} private: Aws::String m_organizationId; bool m_organizationIdHasBeenSet = false; Aws::String m_impersonationRoleId; bool m_impersonationRoleIdHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws