AWS SDK for C++

AWS SDK for C++ Version 1.11.807

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
36 inline const Aws::String& GetName() const { return m_name; }
37 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
38 template <typename NameT = Aws::String>
39 void SetName(NameT&& value) {
40 m_nameHasBeenSet = true;
41 m_name = std::forward<NameT>(value);
42 }
43 template <typename NameT = Aws::String>
45 SetName(std::forward<NameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetTitle() const { return m_title; }
55 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
56 template <typename TitleT = Aws::String>
57 void SetTitle(TitleT&& value) {
58 m_titleHasBeenSet = true;
59 m_title = std::forward<TitleT>(value);
60 }
61 template <typename TitleT = Aws::String>
63 SetTitle(std::forward<TitleT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
73 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
74 template <typename EmailAddressT = Aws::String>
75 void SetEmailAddress(EmailAddressT&& value) {
76 m_emailAddressHasBeenSet = true;
77 m_emailAddress = std::forward<EmailAddressT>(value);
78 }
79 template <typename EmailAddressT = Aws::String>
81 SetEmailAddress(std::forward<EmailAddressT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
91 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
92 template <typename PhoneNumberT = Aws::String>
93 void SetPhoneNumber(PhoneNumberT&& value) {
94 m_phoneNumberHasBeenSet = true;
95 m_phoneNumber = std::forward<PhoneNumberT>(value);
96 }
97 template <typename PhoneNumberT = Aws::String>
99 SetPhoneNumber(std::forward<PhoneNumberT>(value));
100 return *this;
101 }
103
105
108 inline AlternateContactType GetAlternateContactType() const { return m_alternateContactType; }
109 inline bool AlternateContactTypeHasBeenSet() const { return m_alternateContactTypeHasBeenSet; }
111 m_alternateContactTypeHasBeenSet = true;
112 m_alternateContactType = value;
113 }
116 return *this;
117 }
119
121
143 inline const Aws::String& GetAccountId() const { return m_accountId; }
144 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
145 template <typename AccountIdT = Aws::String>
146 void SetAccountId(AccountIdT&& value) {
147 m_accountIdHasBeenSet = true;
148 m_accountId = std::forward<AccountIdT>(value);
149 }
150 template <typename AccountIdT = Aws::String>
152 SetAccountId(std::forward<AccountIdT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_name;
158
159 Aws::String m_title;
160
161 Aws::String m_emailAddress;
162
163 Aws::String m_phoneNumber;
164
166
167 Aws::String m_accountId;
168 bool m_nameHasBeenSet = false;
169 bool m_titleHasBeenSet = false;
170 bool m_emailAddressHasBeenSet = false;
171 bool m_phoneNumberHasBeenSet = false;
172 bool m_alternateContactTypeHasBeenSet = false;
173 bool m_accountIdHasBeenSet = 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