AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ResetPasswordRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workmail/WorkMailRequest.h>
9#include <aws/workmail/WorkMail_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace WorkMail {
15namespace Model {
16
20 public:
21 AWS_WORKMAIL_API ResetPasswordRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ResetPassword"; }
28
29 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
39 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
40 template <typename OrganizationIdT = Aws::String>
41 void SetOrganizationId(OrganizationIdT&& value) {
42 m_organizationIdHasBeenSet = true;
43 m_organizationId = std::forward<OrganizationIdT>(value);
44 }
45 template <typename OrganizationIdT = Aws::String>
46 ResetPasswordRequest& WithOrganizationId(OrganizationIdT&& value) {
47 SetOrganizationId(std::forward<OrganizationIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetUserId() const { return m_userId; }
57 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
58 template <typename UserIdT = Aws::String>
59 void SetUserId(UserIdT&& value) {
60 m_userIdHasBeenSet = true;
61 m_userId = std::forward<UserIdT>(value);
62 }
63 template <typename UserIdT = Aws::String>
64 ResetPasswordRequest& WithUserId(UserIdT&& value) {
65 SetUserId(std::forward<UserIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetPassword() const { return m_password; }
75 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
76 template <typename PasswordT = Aws::String>
77 void SetPassword(PasswordT&& value) {
78 m_passwordHasBeenSet = true;
79 m_password = std::forward<PasswordT>(value);
80 }
81 template <typename PasswordT = Aws::String>
82 ResetPasswordRequest& WithPassword(PasswordT&& value) {
83 SetPassword(std::forward<PasswordT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_organizationId;
89
90 Aws::String m_userId;
91
92 Aws::String m_password;
93 bool m_organizationIdHasBeenSet = false;
94 bool m_userIdHasBeenSet = false;
95 bool m_passwordHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace WorkMail
100} // namespace Aws
ResetPasswordRequest & WithUserId(UserIdT &&value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WORKMAIL_API ResetPasswordRequest()=default
virtual const char * GetServiceRequestName() const override
void SetOrganizationId(OrganizationIdT &&value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
ResetPasswordRequest & WithPassword(PasswordT &&value)
ResetPasswordRequest & WithOrganizationId(OrganizationIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String