AWS SDK for C++  1.9.104
AWS SDK for C++
CreateAliasRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace WorkMail
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateAlias"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
41 
45  inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
46 
50  inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
51 
55  inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
56 
60  inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
61 
65  inline CreateAliasRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
66 
70  inline CreateAliasRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
71 
75  inline CreateAliasRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
76 
77 
81  inline const Aws::String& GetEntityId() const{ return m_entityId; }
82 
86  inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
87 
91  inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; }
92 
96  inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); }
97 
101  inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); }
102 
106  inline CreateAliasRequest& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;}
107 
111  inline CreateAliasRequest& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;}
112 
116  inline CreateAliasRequest& WithEntityId(const char* value) { SetEntityId(value); return *this;}
117 
118 
122  inline const Aws::String& GetAlias() const{ return m_alias; }
123 
127  inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
128 
132  inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
133 
137  inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
138 
142  inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
143 
147  inline CreateAliasRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
148 
152  inline CreateAliasRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
153 
157  inline CreateAliasRequest& WithAlias(const char* value) { SetAlias(value); return *this;}
158 
159  private:
160 
161  Aws::String m_organizationId;
162  bool m_organizationIdHasBeenSet;
163 
164  Aws::String m_entityId;
165  bool m_entityIdHasBeenSet;
166 
167  Aws::String m_alias;
168  bool m_aliasHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace WorkMail
173 } // namespace Aws
Aws::WorkMail::Model::CreateAliasRequest::SetEntityId
void SetEntityId(Aws::String &&value)
Definition: CreateAliasRequest.h:96
Aws::WorkMail::Model::CreateAliasRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: CreateAliasRequest.h:40
Aws::WorkMail::Model::CreateAliasRequest::WithOrganizationId
CreateAliasRequest & WithOrganizationId(const char *value)
Definition: CreateAliasRequest.h:75
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkMail::Model::CreateAliasRequest::SetEntityId
void SetEntityId(const char *value)
Definition: CreateAliasRequest.h:101
Aws::WorkMail::Model::CreateAliasRequest::CreateAliasRequest
CreateAliasRequest()
Aws::WorkMail::Model::CreateAliasRequest
Definition: CreateAliasRequest.h:22
Aws::WorkMail::WorkMailRequest
Definition: WorkMailRequest.h:17
Aws::WorkMail::Model::CreateAliasRequest::WithEntityId
CreateAliasRequest & WithEntityId(Aws::String &&value)
Definition: CreateAliasRequest.h:111
Aws::WorkMail::Model::CreateAliasRequest::GetEntityId
const Aws::String & GetEntityId() const
Definition: CreateAliasRequest.h:81
Aws::WorkMail::Model::CreateAliasRequest::GetAlias
const Aws::String & GetAlias() const
Definition: CreateAliasRequest.h:122
Aws::WorkMail::Model::CreateAliasRequest::SerializePayload
Aws::String SerializePayload() const override
WorkMail_EXPORTS.h
Aws::WorkMail::Model::CreateAliasRequest::AliasHasBeenSet
bool AliasHasBeenSet() const
Definition: CreateAliasRequest.h:127
WorkMailRequest.h
Aws::WorkMail::Model::CreateAliasRequest::WithAlias
CreateAliasRequest & WithAlias(const char *value)
Definition: CreateAliasRequest.h:157
Aws::WorkMail::Model::CreateAliasRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: CreateAliasRequest.h:55
Aws::WorkMail::Model::CreateAliasRequest::SetAlias
void SetAlias(const Aws::String &value)
Definition: CreateAliasRequest.h:132
Aws::WorkMail::Model::CreateAliasRequest::SetAlias
void SetAlias(Aws::String &&value)
Definition: CreateAliasRequest.h:137
Aws::WorkMail::Model::CreateAliasRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkMail::Model::CreateAliasRequest::WithOrganizationId
CreateAliasRequest & WithOrganizationId(const Aws::String &value)
Definition: CreateAliasRequest.h:65
Aws::WorkMail::Model::CreateAliasRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: CreateAliasRequest.h:60
Aws::WorkMail::Model::CreateAliasRequest::WithAlias
CreateAliasRequest & WithAlias(const Aws::String &value)
Definition: CreateAliasRequest.h:147
AWSString.h
Aws::WorkMail::Model::CreateAliasRequest::WithOrganizationId
CreateAliasRequest & WithOrganizationId(Aws::String &&value)
Definition: CreateAliasRequest.h:70
Aws::WorkMail::Model::CreateAliasRequest::EntityIdHasBeenSet
bool EntityIdHasBeenSet() const
Definition: CreateAliasRequest.h:86
Aws::WorkMail::Model::CreateAliasRequest::SetEntityId
void SetEntityId(const Aws::String &value)
Definition: CreateAliasRequest.h:91
Aws::WorkMail::Model::CreateAliasRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: CreateAliasRequest.h:50
Aws::WorkMail::Model::CreateAliasRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAliasRequest.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::CreateAliasRequest::WithAlias
CreateAliasRequest & WithAlias(Aws::String &&value)
Definition: CreateAliasRequest.h:152
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::CreateAliasRequest::WithEntityId
CreateAliasRequest & WithEntityId(const Aws::String &value)
Definition: CreateAliasRequest.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::CreateAliasRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: CreateAliasRequest.h:45
Aws::WorkMail::Model::CreateAliasRequest::SetAlias
void SetAlias(const char *value)
Definition: CreateAliasRequest.h:142
Aws::WorkMail::Model::CreateAliasRequest::WithEntityId
CreateAliasRequest & WithEntityId(const char *value)
Definition: CreateAliasRequest.h:116