AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateImpersonationRoleRequest.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#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace WorkMail
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateImpersonationRole"; }
35
36 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
48 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
49 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
50 inline CreateImpersonationRoleRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
51 inline CreateImpersonationRoleRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
52 inline CreateImpersonationRoleRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
54
56
59 inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
60 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
61 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
62 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
63 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
65 inline CreateImpersonationRoleRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
66 inline CreateImpersonationRoleRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
68
70
73 inline const Aws::String& GetName() const{ return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
76 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 inline CreateImpersonationRoleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
79 inline CreateImpersonationRoleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 inline CreateImpersonationRoleRequest& WithName(const char* value) { SetName(value); return *this;}
82
84
88 inline const ImpersonationRoleType& GetType() const{ return m_type; }
89 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
90 inline void SetType(const ImpersonationRoleType& value) { m_typeHasBeenSet = true; m_type = value; }
91 inline void SetType(ImpersonationRoleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
92 inline CreateImpersonationRoleRequest& WithType(const ImpersonationRoleType& value) { SetType(value); return *this;}
93 inline CreateImpersonationRoleRequest& WithType(ImpersonationRoleType&& value) { SetType(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetDescription() const{ return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
103 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
104 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
105 inline CreateImpersonationRoleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
106 inline CreateImpersonationRoleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
107 inline CreateImpersonationRoleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
109
111
114 inline const Aws::Vector<ImpersonationRule>& GetRules() const{ return m_rules; }
115 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
116 inline void SetRules(const Aws::Vector<ImpersonationRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
117 inline void SetRules(Aws::Vector<ImpersonationRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
119 inline CreateImpersonationRoleRequest& WithRules(Aws::Vector<ImpersonationRule>&& value) { SetRules(std::move(value)); return *this;}
120 inline CreateImpersonationRoleRequest& AddRules(const ImpersonationRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
121 inline CreateImpersonationRoleRequest& AddRules(ImpersonationRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
123 private:
124
125 Aws::String m_clientToken;
126 bool m_clientTokenHasBeenSet = false;
127
128 Aws::String m_organizationId;
129 bool m_organizationIdHasBeenSet = false;
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
135 bool m_typeHasBeenSet = false;
136
137 Aws::String m_description;
138 bool m_descriptionHasBeenSet = false;
139
141 bool m_rulesHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace WorkMail
146} // namespace Aws
CreateImpersonationRoleRequest & WithName(Aws::String &&value)
void SetRules(Aws::Vector< ImpersonationRule > &&value)
CreateImpersonationRoleRequest & WithClientToken(Aws::String &&value)
CreateImpersonationRoleRequest & WithClientToken(const Aws::String &value)
CreateImpersonationRoleRequest & WithOrganizationId(const Aws::String &value)
CreateImpersonationRoleRequest & WithRules(const Aws::Vector< ImpersonationRule > &value)
CreateImpersonationRoleRequest & WithOrganizationId(const char *value)
CreateImpersonationRoleRequest & WithDescription(const Aws::String &value)
CreateImpersonationRoleRequest & WithType(const ImpersonationRoleType &value)
CreateImpersonationRoleRequest & WithName(const Aws::String &value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
CreateImpersonationRoleRequest & WithClientToken(const char *value)
CreateImpersonationRoleRequest & AddRules(const ImpersonationRule &value)
const Aws::Vector< ImpersonationRule > & GetRules() const
CreateImpersonationRoleRequest & AddRules(ImpersonationRule &&value)
CreateImpersonationRoleRequest & WithDescription(Aws::String &&value)
void SetRules(const Aws::Vector< ImpersonationRule > &value)
CreateImpersonationRoleRequest & WithName(const char *value)
CreateImpersonationRoleRequest & WithDescription(const char *value)
CreateImpersonationRoleRequest & WithType(ImpersonationRoleType &&value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateImpersonationRoleRequest & WithRules(Aws::Vector< ImpersonationRule > &&value)
CreateImpersonationRoleRequest & WithOrganizationId(Aws::String &&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