AWS SDK for C++  1.9.109
AWS SDK for C++
UpdatePrimaryEmailAddressRequest.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 "UpdatePrimaryEmailAddress"; }
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 UpdatePrimaryEmailAddressRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
66 
70  inline UpdatePrimaryEmailAddressRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
71 
75  inline UpdatePrimaryEmailAddressRequest& 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 UpdatePrimaryEmailAddressRequest& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;}
107 
111  inline UpdatePrimaryEmailAddressRequest& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;}
112 
116  inline UpdatePrimaryEmailAddressRequest& WithEntityId(const char* value) { SetEntityId(value); return *this;}
117 
118 
122  inline const Aws::String& GetEmail() const{ return m_email; }
123 
127  inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
128 
132  inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
133 
137  inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
138 
142  inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
143 
147  inline UpdatePrimaryEmailAddressRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
148 
152  inline UpdatePrimaryEmailAddressRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
153 
157  inline UpdatePrimaryEmailAddressRequest& WithEmail(const char* value) { SetEmail(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_email;
168  bool m_emailHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace WorkMail
173 } // namespace Aws
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::WithOrganizationId
UpdatePrimaryEmailAddressRequest & WithOrganizationId(const char *value)
Definition: UpdatePrimaryEmailAddressRequest.h:75
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::UpdatePrimaryEmailAddressRequest
UpdatePrimaryEmailAddressRequest()
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::WithEntityId
UpdatePrimaryEmailAddressRequest & WithEntityId(const char *value)
Definition: UpdatePrimaryEmailAddressRequest.h:116
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::GetEmail
const Aws::String & GetEmail() const
Definition: UpdatePrimaryEmailAddressRequest.h:122
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::WithOrganizationId
UpdatePrimaryEmailAddressRequest & WithOrganizationId(Aws::String &&value)
Definition: UpdatePrimaryEmailAddressRequest.h:70
Aws::WorkMail::WorkMailRequest
Definition: WorkMailRequest.h:17
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::SetEmail
void SetEmail(const char *value)
Definition: UpdatePrimaryEmailAddressRequest.h:142
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: UpdatePrimaryEmailAddressRequest.h:55
WorkMail_EXPORTS.h
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: UpdatePrimaryEmailAddressRequest.h:50
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::SetEmail
void SetEmail(const Aws::String &value)
Definition: UpdatePrimaryEmailAddressRequest.h:132
WorkMailRequest.h
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::WithEntityId
UpdatePrimaryEmailAddressRequest & WithEntityId(const Aws::String &value)
Definition: UpdatePrimaryEmailAddressRequest.h:106
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::WithEmail
UpdatePrimaryEmailAddressRequest & WithEmail(const Aws::String &value)
Definition: UpdatePrimaryEmailAddressRequest.h:147
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::WithEmail
UpdatePrimaryEmailAddressRequest & WithEmail(Aws::String &&value)
Definition: UpdatePrimaryEmailAddressRequest.h:152
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::SetEntityId
void SetEntityId(const char *value)
Definition: UpdatePrimaryEmailAddressRequest.h:101
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::WithOrganizationId
UpdatePrimaryEmailAddressRequest & WithOrganizationId(const Aws::String &value)
Definition: UpdatePrimaryEmailAddressRequest.h:65
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::SetEmail
void SetEmail(Aws::String &&value)
Definition: UpdatePrimaryEmailAddressRequest.h:137
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdatePrimaryEmailAddressRequest.h:30
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: UpdatePrimaryEmailAddressRequest.h:60
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: UpdatePrimaryEmailAddressRequest.h:40
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: UpdatePrimaryEmailAddressRequest.h:45
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest
Definition: UpdatePrimaryEmailAddressRequest.h:22
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::WithEntityId
UpdatePrimaryEmailAddressRequest & WithEntityId(Aws::String &&value)
Definition: UpdatePrimaryEmailAddressRequest.h:111
AWSString.h
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::EmailHasBeenSet
bool EmailHasBeenSet() const
Definition: UpdatePrimaryEmailAddressRequest.h:127
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::WithEmail
UpdatePrimaryEmailAddressRequest & WithEmail(const char *value)
Definition: UpdatePrimaryEmailAddressRequest.h:157
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::EntityIdHasBeenSet
bool EntityIdHasBeenSet() const
Definition: UpdatePrimaryEmailAddressRequest.h:86
Aws
Definition: AccessManagementClient.h:15
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::GetEntityId
const Aws::String & GetEntityId() const
Definition: UpdatePrimaryEmailAddressRequest.h:81
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::SetEntityId
void SetEntityId(const Aws::String &value)
Definition: UpdatePrimaryEmailAddressRequest.h:91
Aws::WorkMail::Model::UpdatePrimaryEmailAddressRequest::SetEntityId
void SetEntityId(Aws::String &&value)
Definition: UpdatePrimaryEmailAddressRequest.h:96