AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
AcceptPrimaryEmailUpdateRequest.h
1
6#pragma once
7#include <aws/account/AccountRequest.h>
8#include <aws/account/Account_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Account {
15namespace Model {
16
20 public:
21 AWS_ACCOUNT_API AcceptPrimaryEmailUpdateRequest() = 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 "AcceptPrimaryEmailUpdate"; }
28
29 AWS_ACCOUNT_API Aws::String SerializePayload() const override;
30
32
50 inline const Aws::String& GetAccountId() const { return m_accountId; }
51 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
52 template <typename AccountIdT = Aws::String>
53 void SetAccountId(AccountIdT&& value) {
54 m_accountIdHasBeenSet = true;
55 m_accountId = std::forward<AccountIdT>(value);
56 }
57 template <typename AccountIdT = Aws::String>
59 SetAccountId(std::forward<AccountIdT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::String& GetOtp() const { return m_otp; }
70 inline bool OtpHasBeenSet() const { return m_otpHasBeenSet; }
71 template <typename OtpT = Aws::String>
72 void SetOtp(OtpT&& value) {
73 m_otpHasBeenSet = true;
74 m_otp = std::forward<OtpT>(value);
75 }
76 template <typename OtpT = Aws::String>
78 SetOtp(std::forward<OtpT>(value));
79 return *this;
80 }
82
84
89 inline const Aws::String& GetPrimaryEmail() const { return m_primaryEmail; }
90 inline bool PrimaryEmailHasBeenSet() const { return m_primaryEmailHasBeenSet; }
91 template <typename PrimaryEmailT = Aws::String>
92 void SetPrimaryEmail(PrimaryEmailT&& value) {
93 m_primaryEmailHasBeenSet = true;
94 m_primaryEmail = std::forward<PrimaryEmailT>(value);
95 }
96 template <typename PrimaryEmailT = Aws::String>
98 SetPrimaryEmail(std::forward<PrimaryEmailT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_accountId;
104 bool m_accountIdHasBeenSet = false;
105
106 Aws::String m_otp;
107 bool m_otpHasBeenSet = false;
108
109 Aws::String m_primaryEmail;
110 bool m_primaryEmailHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace Account
115} // namespace Aws
AcceptPrimaryEmailUpdateRequest & WithAccountId(AccountIdT &&value)
AWS_ACCOUNT_API AcceptPrimaryEmailUpdateRequest()=default
AWS_ACCOUNT_API Aws::String SerializePayload() const override
AcceptPrimaryEmailUpdateRequest & WithPrimaryEmail(PrimaryEmailT &&value)
AcceptPrimaryEmailUpdateRequest & WithOtp(OtpT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String