AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutAlternateContactRequest.h
1
6#pragma once
7#include <aws/account/AccountRequest.h>
8#include <aws/account/Account_EXPORTS.h>
9#include <aws/account/model/AlternateContactType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Account {
16namespace Model {
17
21 public:
22 AWS_ACCOUNT_API PutAlternateContactRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutAlternateContact"; }
29
30 AWS_ACCOUNT_API Aws::String SerializePayload() const override;
31
33
55 inline const Aws::String& GetAccountId() const { return m_accountId; }
56 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
57 template <typename AccountIdT = Aws::String>
58 void SetAccountId(AccountIdT&& value) {
59 m_accountIdHasBeenSet = true;
60 m_accountId = std::forward<AccountIdT>(value);
61 }
62 template <typename AccountIdT = Aws::String>
64 SetAccountId(std::forward<AccountIdT>(value));
65 return *this;
66 }
68
70
73 inline AlternateContactType GetAlternateContactType() const { return m_alternateContactType; }
74 inline bool AlternateContactTypeHasBeenSet() const { return m_alternateContactTypeHasBeenSet; }
76 m_alternateContactTypeHasBeenSet = true;
77 m_alternateContactType = value;
78 }
81 return *this;
82 }
84
86
89 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
90 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
91 template <typename EmailAddressT = Aws::String>
92 void SetEmailAddress(EmailAddressT&& value) {
93 m_emailAddressHasBeenSet = true;
94 m_emailAddress = std::forward<EmailAddressT>(value);
95 }
96 template <typename EmailAddressT = Aws::String>
98 SetEmailAddress(std::forward<EmailAddressT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetName() const { return m_name; }
108 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
109 template <typename NameT = Aws::String>
110 void SetName(NameT&& value) {
111 m_nameHasBeenSet = true;
112 m_name = std::forward<NameT>(value);
113 }
114 template <typename NameT = Aws::String>
116 SetName(std::forward<NameT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
126 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
127 template <typename PhoneNumberT = Aws::String>
128 void SetPhoneNumber(PhoneNumberT&& value) {
129 m_phoneNumberHasBeenSet = true;
130 m_phoneNumber = std::forward<PhoneNumberT>(value);
131 }
132 template <typename PhoneNumberT = Aws::String>
134 SetPhoneNumber(std::forward<PhoneNumberT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetTitle() const { return m_title; }
144 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
145 template <typename TitleT = Aws::String>
146 void SetTitle(TitleT&& value) {
147 m_titleHasBeenSet = true;
148 m_title = std::forward<TitleT>(value);
149 }
150 template <typename TitleT = Aws::String>
152 SetTitle(std::forward<TitleT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_accountId;
158
160
161 Aws::String m_emailAddress;
162
163 Aws::String m_name;
164
165 Aws::String m_phoneNumber;
166
167 Aws::String m_title;
168 bool m_accountIdHasBeenSet = false;
169 bool m_alternateContactTypeHasBeenSet = false;
170 bool m_emailAddressHasBeenSet = false;
171 bool m_nameHasBeenSet = false;
172 bool m_phoneNumberHasBeenSet = false;
173 bool m_titleHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace Account
178} // namespace Aws
PutAlternateContactRequest & WithEmailAddress(EmailAddressT &&value)
PutAlternateContactRequest & WithAlternateContactType(AlternateContactType value)
PutAlternateContactRequest & WithPhoneNumber(PhoneNumberT &&value)
PutAlternateContactRequest & WithName(NameT &&value)
PutAlternateContactRequest & WithTitle(TitleT &&value)
AWS_ACCOUNT_API PutAlternateContactRequest()=default
AWS_ACCOUNT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
PutAlternateContactRequest & WithAccountId(AccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String