AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
47 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
48 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
50 inline UpdateImpersonationRoleRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
51 inline UpdateImpersonationRoleRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
53
55
58 inline const Aws::String& GetImpersonationRoleId() const{ return m_impersonationRoleId; }
59 inline bool ImpersonationRoleIdHasBeenSet() const { return m_impersonationRoleIdHasBeenSet; }
60 inline void SetImpersonationRoleId(const Aws::String& value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId = value; }
61 inline void SetImpersonationRoleId(Aws::String&& value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId = std::move(value); }
62 inline void SetImpersonationRoleId(const char* value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId.assign(value); }
65 inline UpdateImpersonationRoleRequest& WithImpersonationRoleId(const char* value) { SetImpersonationRoleId(value); return *this;}
67
69
72 inline const Aws::String& GetName() const{ return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
75 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
76 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 inline UpdateImpersonationRoleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
78 inline UpdateImpersonationRoleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 inline UpdateImpersonationRoleRequest& WithName(const char* value) { SetName(value); return *this;}
81
83
86 inline const ImpersonationRoleType& GetType() const{ return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 inline void SetType(const ImpersonationRoleType& value) { m_typeHasBeenSet = true; m_type = value; }
89 inline void SetType(ImpersonationRoleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
90 inline UpdateImpersonationRoleRequest& WithType(const ImpersonationRoleType& value) { SetType(value); return *this;}
91 inline UpdateImpersonationRoleRequest& WithType(ImpersonationRoleType&& value) { SetType(std::move(value)); return *this;}
93
95
98 inline const Aws::String& GetDescription() const{ return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
101 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
102 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
103 inline UpdateImpersonationRoleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
104 inline UpdateImpersonationRoleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
105 inline UpdateImpersonationRoleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
107
109
112 inline const Aws::Vector<ImpersonationRule>& GetRules() const{ return m_rules; }
113 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
114 inline void SetRules(const Aws::Vector<ImpersonationRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
115 inline void SetRules(Aws::Vector<ImpersonationRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
117 inline UpdateImpersonationRoleRequest& WithRules(Aws::Vector<ImpersonationRule>&& value) { SetRules(std::move(value)); return *this;}
118 inline UpdateImpersonationRoleRequest& AddRules(const ImpersonationRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
119 inline UpdateImpersonationRoleRequest& AddRules(ImpersonationRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
121 private:
122
123 Aws::String m_organizationId;
124 bool m_organizationIdHasBeenSet = false;
125
126 Aws::String m_impersonationRoleId;
127 bool m_impersonationRoleIdHasBeenSet = false;
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
133 bool m_typeHasBeenSet = false;
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
139 bool m_rulesHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace WorkMail
144} // namespace Aws
UpdateImpersonationRoleRequest & WithName(const char *value)
UpdateImpersonationRoleRequest & WithImpersonationRoleId(const Aws::String &value)
UpdateImpersonationRoleRequest & WithDescription(Aws::String &&value)
UpdateImpersonationRoleRequest & WithOrganizationId(Aws::String &&value)
UpdateImpersonationRoleRequest & WithRules(Aws::Vector< ImpersonationRule > &&value)
void SetRules(Aws::Vector< ImpersonationRule > &&value)
const Aws::Vector< ImpersonationRule > & GetRules() const
UpdateImpersonationRoleRequest & AddRules(const ImpersonationRule &value)
UpdateImpersonationRoleRequest & WithOrganizationId(const char *value)
UpdateImpersonationRoleRequest & WithOrganizationId(const Aws::String &value)
UpdateImpersonationRoleRequest & WithType(const ImpersonationRoleType &value)
UpdateImpersonationRoleRequest & WithDescription(const Aws::String &value)
UpdateImpersonationRoleRequest & WithRules(const Aws::Vector< ImpersonationRule > &value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
void SetRules(const Aws::Vector< ImpersonationRule > &value)
UpdateImpersonationRoleRequest & AddRules(ImpersonationRule &&value)
UpdateImpersonationRoleRequest & WithImpersonationRoleId(Aws::String &&value)
UpdateImpersonationRoleRequest & WithName(Aws::String &&value)
UpdateImpersonationRoleRequest & WithImpersonationRoleId(const char *value)
UpdateImpersonationRoleRequest & WithName(const Aws::String &value)
UpdateImpersonationRoleRequest & WithType(ImpersonationRoleType &&value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateImpersonationRoleRequest & WithDescription(const char *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