AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AcceptPrimaryEmailUpdateRequest.h
1
6#pragma once
7#include <aws/account/Account_EXPORTS.h>
8#include <aws/account/AccountRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Account
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_ACCOUNT_API AcceptPrimaryEmailUpdateRequest() = default;
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 "AcceptPrimaryEmailUpdate"; }
31
32 AWS_ACCOUNT_API Aws::String SerializePayload() const override;
33
34
36
54 inline const Aws::String& GetAccountId() const { return m_accountId; }
55 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
56 template<typename AccountIdT = Aws::String>
57 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
58 template<typename AccountIdT = Aws::String>
59 AcceptPrimaryEmailUpdateRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
61
63
67 inline const Aws::String& GetOtp() const { return m_otp; }
68 inline bool OtpHasBeenSet() const { return m_otpHasBeenSet; }
69 template<typename OtpT = Aws::String>
70 void SetOtp(OtpT&& value) { m_otpHasBeenSet = true; m_otp = std::forward<OtpT>(value); }
71 template<typename OtpT = Aws::String>
72 AcceptPrimaryEmailUpdateRequest& WithOtp(OtpT&& value) { SetOtp(std::forward<OtpT>(value)); return *this;}
74
76
81 inline const Aws::String& GetPrimaryEmail() const { return m_primaryEmail; }
82 inline bool PrimaryEmailHasBeenSet() const { return m_primaryEmailHasBeenSet; }
83 template<typename PrimaryEmailT = Aws::String>
84 void SetPrimaryEmail(PrimaryEmailT&& value) { m_primaryEmailHasBeenSet = true; m_primaryEmail = std::forward<PrimaryEmailT>(value); }
85 template<typename PrimaryEmailT = Aws::String>
86 AcceptPrimaryEmailUpdateRequest& WithPrimaryEmail(PrimaryEmailT&& value) { SetPrimaryEmail(std::forward<PrimaryEmailT>(value)); return *this;}
88 private:
89
90 Aws::String m_accountId;
91 bool m_accountIdHasBeenSet = false;
92
93 Aws::String m_otp;
94 bool m_otpHasBeenSet = false;
95
96 Aws::String m_primaryEmail;
97 bool m_primaryEmailHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Account
102} // 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