AWS SDK for C++  1.9.104
AWS SDK for C++
RegisterToWorkMailRequest.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 "RegisterToWorkMail"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
42 
47  inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
48 
53  inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
54 
59  inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
60 
65  inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
66 
71  inline RegisterToWorkMailRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
72 
77  inline RegisterToWorkMailRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
78 
83  inline RegisterToWorkMailRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
84 
85 
89  inline const Aws::String& GetEntityId() const{ return m_entityId; }
90 
94  inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
95 
99  inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; }
100 
104  inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); }
105 
109  inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); }
110 
114  inline RegisterToWorkMailRequest& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;}
115 
119  inline RegisterToWorkMailRequest& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;}
120 
124  inline RegisterToWorkMailRequest& WithEntityId(const char* value) { SetEntityId(value); return *this;}
125 
126 
130  inline const Aws::String& GetEmail() const{ return m_email; }
131 
135  inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
136 
140  inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
141 
145  inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
146 
150  inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
151 
155  inline RegisterToWorkMailRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
156 
160  inline RegisterToWorkMailRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
161 
165  inline RegisterToWorkMailRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
166 
167  private:
168 
169  Aws::String m_organizationId;
170  bool m_organizationIdHasBeenSet;
171 
172  Aws::String m_entityId;
173  bool m_entityIdHasBeenSet;
174 
175  Aws::String m_email;
176  bool m_emailHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace WorkMail
181 } // namespace Aws
Aws::WorkMail::Model::RegisterToWorkMailRequest::WithEmail
RegisterToWorkMailRequest & WithEmail(const Aws::String &value)
Definition: RegisterToWorkMailRequest.h:155
Aws::WorkMail::Model::RegisterToWorkMailRequest::WithEntityId
RegisterToWorkMailRequest & WithEntityId(const Aws::String &value)
Definition: RegisterToWorkMailRequest.h:114
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkMail::WorkMailRequest
Definition: WorkMailRequest.h:17
Aws::WorkMail::Model::RegisterToWorkMailRequest::WithEmail
RegisterToWorkMailRequest & WithEmail(const char *value)
Definition: RegisterToWorkMailRequest.h:165
WorkMail_EXPORTS.h
Aws::WorkMail::Model::RegisterToWorkMailRequest::WithOrganizationId
RegisterToWorkMailRequest & WithOrganizationId(const Aws::String &value)
Definition: RegisterToWorkMailRequest.h:71
WorkMailRequest.h
Aws::WorkMail::Model::RegisterToWorkMailRequest::SetEmail
void SetEmail(Aws::String &&value)
Definition: RegisterToWorkMailRequest.h:145
Aws::WorkMail::Model::RegisterToWorkMailRequest::GetEntityId
const Aws::String & GetEntityId() const
Definition: RegisterToWorkMailRequest.h:89
Aws::WorkMail::Model::RegisterToWorkMailRequest::WithOrganizationId
RegisterToWorkMailRequest & WithOrganizationId(const char *value)
Definition: RegisterToWorkMailRequest.h:83
Aws::WorkMail::Model::RegisterToWorkMailRequest::SetEntityId
void SetEntityId(const char *value)
Definition: RegisterToWorkMailRequest.h:109
Aws::WorkMail::Model::RegisterToWorkMailRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: RegisterToWorkMailRequest.h:65
Aws::WorkMail::Model::RegisterToWorkMailRequest::WithEntityId
RegisterToWorkMailRequest & WithEntityId(const char *value)
Definition: RegisterToWorkMailRequest.h:124
Aws::WorkMail::Model::RegisterToWorkMailRequest::WithOrganizationId
RegisterToWorkMailRequest & WithOrganizationId(Aws::String &&value)
Definition: RegisterToWorkMailRequest.h:77
Aws::WorkMail::Model::RegisterToWorkMailRequest::GetEmail
const Aws::String & GetEmail() const
Definition: RegisterToWorkMailRequest.h:130
AWSString.h
Aws::WorkMail::Model::RegisterToWorkMailRequest::WithEntityId
RegisterToWorkMailRequest & WithEntityId(Aws::String &&value)
Definition: RegisterToWorkMailRequest.h:119
Aws::WorkMail::Model::RegisterToWorkMailRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RegisterToWorkMailRequest.h:30
Aws::WorkMail::Model::RegisterToWorkMailRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: RegisterToWorkMailRequest.h:59
Aws::WorkMail::Model::RegisterToWorkMailRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: RegisterToWorkMailRequest.h:53
Aws::WorkMail::Model::RegisterToWorkMailRequest::SetEmail
void SetEmail(const char *value)
Definition: RegisterToWorkMailRequest.h:150
Aws::WorkMail::Model::RegisterToWorkMailRequest::SetEntityId
void SetEntityId(const Aws::String &value)
Definition: RegisterToWorkMailRequest.h:99
Aws::WorkMail::Model::RegisterToWorkMailRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: RegisterToWorkMailRequest.h:41
Aws::WorkMail::Model::RegisterToWorkMailRequest::WithEmail
RegisterToWorkMailRequest & WithEmail(Aws::String &&value)
Definition: RegisterToWorkMailRequest.h:160
Aws::WorkMail::Model::RegisterToWorkMailRequest::RegisterToWorkMailRequest
RegisterToWorkMailRequest()
Aws::WorkMail::Model::RegisterToWorkMailRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::RegisterToWorkMailRequest::EntityIdHasBeenSet
bool EntityIdHasBeenSet() const
Definition: RegisterToWorkMailRequest.h:94
Aws::WorkMail::Model::RegisterToWorkMailRequest::EmailHasBeenSet
bool EmailHasBeenSet() const
Definition: RegisterToWorkMailRequest.h:135
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::RegisterToWorkMailRequest::SetEmail
void SetEmail(const Aws::String &value)
Definition: RegisterToWorkMailRequest.h:140
Aws::WorkMail::Model::RegisterToWorkMailRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: RegisterToWorkMailRequest.h:47
Aws::WorkMail::Model::RegisterToWorkMailRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkMail::Model::RegisterToWorkMailRequest
Definition: RegisterToWorkMailRequest.h:22
Aws::WorkMail::Model::RegisterToWorkMailRequest::SetEntityId
void SetEntityId(Aws::String &&value)
Definition: RegisterToWorkMailRequest.h:104