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

The WorkMail organization that contains the impersonation role to update.

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

The WorkMail organization that contains the impersonation role to update.

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

The WorkMail organization that contains the impersonation role to update.

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

The WorkMail organization that contains the impersonation role to update.

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

The WorkMail organization that contains the impersonation role to update.

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

The WorkMail organization that contains the impersonation role to update.

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

The WorkMail organization that contains the impersonation role to update.

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

The WorkMail organization that contains the impersonation role to update.

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

The ID of the impersonation role to update.

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

The ID of the impersonation role to update.

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

The ID of the impersonation role to update.

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

The ID of the impersonation role to update.

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

The ID of the impersonation role to update.

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

The ID of the impersonation role to update.

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

The ID of the impersonation role to update.

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

The ID of the impersonation role to update.

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

The updated impersonation role name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The updated impersonation role name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The updated impersonation role name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The updated impersonation role name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The updated impersonation role name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The updated impersonation role name.

*/ inline UpdateImpersonationRoleRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The updated impersonation role name.

*/ inline UpdateImpersonationRoleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The updated impersonation role name.

*/ inline UpdateImpersonationRoleRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The updated impersonation role type.

*/ inline const ImpersonationRoleType& GetType() const{ return m_type; } /** *

The updated impersonation role type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The updated impersonation role type.

*/ inline void SetType(const ImpersonationRoleType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The updated impersonation role type.

*/ inline void SetType(ImpersonationRoleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The updated impersonation role type.

*/ inline UpdateImpersonationRoleRequest& WithType(const ImpersonationRoleType& value) { SetType(value); return *this;} /** *

The updated impersonation role type.

*/ inline UpdateImpersonationRoleRequest& WithType(ImpersonationRoleType&& value) { SetType(std::move(value)); return *this;} /** *

The updated impersonation role description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The updated impersonation role description.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The updated impersonation role description.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The updated impersonation role description.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The updated impersonation role description.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The updated impersonation role description.

*/ inline UpdateImpersonationRoleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The updated impersonation role description.

*/ inline UpdateImpersonationRoleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The updated impersonation role description.

*/ inline UpdateImpersonationRoleRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The updated list of rules.

*/ inline const Aws::Vector& GetRules() const{ return m_rules; } /** *

The updated list of rules.

*/ inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } /** *

The updated list of rules.

*/ inline void SetRules(const Aws::Vector& value) { m_rulesHasBeenSet = true; m_rules = value; } /** *

The updated list of rules.

*/ inline void SetRules(Aws::Vector&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); } /** *

The updated list of rules.

*/ inline UpdateImpersonationRoleRequest& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} /** *

The updated list of rules.

*/ inline UpdateImpersonationRoleRequest& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} /** *

The updated list of rules.

*/ inline UpdateImpersonationRoleRequest& AddRules(const ImpersonationRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } /** *

The updated list of rules.

*/ inline UpdateImpersonationRoleRequest& AddRules(ImpersonationRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } private: Aws::String m_organizationId; bool m_organizationIdHasBeenSet = false; Aws::String m_impersonationRoleId; bool m_impersonationRoleIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ImpersonationRoleType m_type; bool m_typeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_rules; bool m_rulesHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws