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

The WorkMail organization where the impersonation role is defined.

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

The WorkMail organization where the impersonation role is defined.

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

The WorkMail organization where the impersonation role is defined.

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

The WorkMail organization where the impersonation role is defined.

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

The WorkMail organization where the impersonation role is defined.

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

The WorkMail organization where the impersonation role is defined.

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

The WorkMail organization where the impersonation role is defined.

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

The WorkMail organization where the impersonation role is defined.

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

The impersonation role ID to test.

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

The impersonation role ID to test.

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

The impersonation role ID to test.

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

The impersonation role ID to test.

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

The impersonation role ID to test.

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

The impersonation role ID to test.

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

The impersonation role ID to test.

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

The impersonation role ID to test.

*/ inline GetImpersonationRoleEffectRequest& WithImpersonationRoleId(const char* value) { SetImpersonationRoleId(value); return *this;} /** *

The WorkMail organization user chosen to test the impersonation role. The * following identity formats are available:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline const Aws::String& GetTargetUser() const{ return m_targetUser; } /** *

The WorkMail organization user chosen to test the impersonation role. The * following identity formats are available:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline bool TargetUserHasBeenSet() const { return m_targetUserHasBeenSet; } /** *

The WorkMail organization user chosen to test the impersonation role. The * following identity formats are available:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline void SetTargetUser(const Aws::String& value) { m_targetUserHasBeenSet = true; m_targetUser = value; } /** *

The WorkMail organization user chosen to test the impersonation role. The * following identity formats are available:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline void SetTargetUser(Aws::String&& value) { m_targetUserHasBeenSet = true; m_targetUser = std::move(value); } /** *

The WorkMail organization user chosen to test the impersonation role. The * following identity formats are available:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline void SetTargetUser(const char* value) { m_targetUserHasBeenSet = true; m_targetUser.assign(value); } /** *

The WorkMail organization user chosen to test the impersonation role. The * following identity formats are available:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline GetImpersonationRoleEffectRequest& WithTargetUser(const Aws::String& value) { SetTargetUser(value); return *this;} /** *

The WorkMail organization user chosen to test the impersonation role. The * following identity formats are available:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline GetImpersonationRoleEffectRequest& WithTargetUser(Aws::String&& value) { SetTargetUser(std::move(value)); return *this;} /** *

The WorkMail organization user chosen to test the impersonation role. The * following identity formats are available:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline GetImpersonationRoleEffectRequest& WithTargetUser(const char* value) { SetTargetUser(value); return *this;} private: Aws::String m_organizationId; bool m_organizationIdHasBeenSet = false; Aws::String m_impersonationRoleId; bool m_impersonationRoleIdHasBeenSet = false; Aws::String m_targetUser; bool m_targetUserHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws