AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateImpersonationRoleRequest.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/workmail/WorkMailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workmail/model/ImpersonationRoleType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/workmail/model/ImpersonationRule.h>
13#include <utility>
14
15namespace Aws
16{
17namespace WorkMail
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_WORKMAIL_API UpdateImpersonationRoleRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateImpersonationRole"; }
34
35 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
45 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
46 template<typename OrganizationIdT = Aws::String>
47 void SetOrganizationId(OrganizationIdT&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::forward<OrganizationIdT>(value); }
48 template<typename OrganizationIdT = Aws::String>
49 UpdateImpersonationRoleRequest& WithOrganizationId(OrganizationIdT&& value) { SetOrganizationId(std::forward<OrganizationIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetImpersonationRoleId() const { return m_impersonationRoleId; }
57 inline bool ImpersonationRoleIdHasBeenSet() const { return m_impersonationRoleIdHasBeenSet; }
58 template<typename ImpersonationRoleIdT = Aws::String>
59 void SetImpersonationRoleId(ImpersonationRoleIdT&& value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId = std::forward<ImpersonationRoleIdT>(value); }
60 template<typename ImpersonationRoleIdT = Aws::String>
61 UpdateImpersonationRoleRequest& WithImpersonationRoleId(ImpersonationRoleIdT&& value) { SetImpersonationRoleId(std::forward<ImpersonationRoleIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetName() const { return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 template<typename NameT = Aws::String>
71 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
72 template<typename NameT = Aws::String>
73 UpdateImpersonationRoleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
75
77
80 inline ImpersonationRoleType GetType() const { return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(ImpersonationRoleType value) { m_typeHasBeenSet = true; m_type = value; }
85
87
90 inline const Aws::String& GetDescription() const { return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 template<typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
94 template<typename DescriptionT = Aws::String>
95 UpdateImpersonationRoleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
97
99
102 inline const Aws::Vector<ImpersonationRule>& GetRules() const { return m_rules; }
103 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
104 template<typename RulesT = Aws::Vector<ImpersonationRule>>
105 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
106 template<typename RulesT = Aws::Vector<ImpersonationRule>>
107 UpdateImpersonationRoleRequest& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
108 template<typename RulesT = ImpersonationRule>
109 UpdateImpersonationRoleRequest& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
111 private:
112
113 Aws::String m_organizationId;
114 bool m_organizationIdHasBeenSet = false;
115
116 Aws::String m_impersonationRoleId;
117 bool m_impersonationRoleIdHasBeenSet = false;
118
119 Aws::String m_name;
120 bool m_nameHasBeenSet = false;
121
123 bool m_typeHasBeenSet = false;
124
125 Aws::String m_description;
126 bool m_descriptionHasBeenSet = false;
127
129 bool m_rulesHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace WorkMail
134} // namespace Aws
UpdateImpersonationRoleRequest & WithDescription(DescriptionT &&value)
UpdateImpersonationRoleRequest & WithType(ImpersonationRoleType value)
UpdateImpersonationRoleRequest & WithRules(RulesT &&value)
const Aws::Vector< ImpersonationRule > & GetRules() const
UpdateImpersonationRoleRequest & WithName(NameT &&value)
UpdateImpersonationRoleRequest & WithImpersonationRoleId(ImpersonationRoleIdT &&value)
AWS_WORKMAIL_API UpdateImpersonationRoleRequest()=default
AWS_WORKMAIL_API Aws::String SerializePayload() const override
UpdateImpersonationRoleRequest & WithOrganizationId(OrganizationIdT &&value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateImpersonationRoleRequest & AddRules(RulesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector