AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutAlternateContactRequest.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 <aws/account/model/AlternateContactType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Account
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ACCOUNT_API PutAlternateContactRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutAlternateContact"; }
32
33 AWS_ACCOUNT_API Aws::String SerializePayload() const override;
34
35
37
59 inline const Aws::String& GetAccountId() const { return m_accountId; }
60 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
61 template<typename AccountIdT = Aws::String>
62 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
63 template<typename AccountIdT = Aws::String>
64 PutAlternateContactRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
66
68
71 inline AlternateContactType GetAlternateContactType() const { return m_alternateContactType; }
72 inline bool AlternateContactTypeHasBeenSet() const { return m_alternateContactTypeHasBeenSet; }
73 inline void SetAlternateContactType(AlternateContactType value) { m_alternateContactTypeHasBeenSet = true; m_alternateContactType = value; }
76
78
81 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
82 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
83 template<typename EmailAddressT = Aws::String>
84 void SetEmailAddress(EmailAddressT&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::forward<EmailAddressT>(value); }
85 template<typename EmailAddressT = Aws::String>
86 PutAlternateContactRequest& WithEmailAddress(EmailAddressT&& value) { SetEmailAddress(std::forward<EmailAddressT>(value)); return *this;}
88
90
93 inline const Aws::String& GetName() const { return m_name; }
94 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 template<typename NameT = Aws::String>
96 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
97 template<typename NameT = Aws::String>
98 PutAlternateContactRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
100
102
105 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
106 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
107 template<typename PhoneNumberT = Aws::String>
108 void SetPhoneNumber(PhoneNumberT&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::forward<PhoneNumberT>(value); }
109 template<typename PhoneNumberT = Aws::String>
110 PutAlternateContactRequest& WithPhoneNumber(PhoneNumberT&& value) { SetPhoneNumber(std::forward<PhoneNumberT>(value)); return *this;}
112
114
117 inline const Aws::String& GetTitle() const { return m_title; }
118 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
119 template<typename TitleT = Aws::String>
120 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
121 template<typename TitleT = Aws::String>
122 PutAlternateContactRequest& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
124 private:
125
126 Aws::String m_accountId;
127 bool m_accountIdHasBeenSet = false;
128
130 bool m_alternateContactTypeHasBeenSet = false;
131
132 Aws::String m_emailAddress;
133 bool m_emailAddressHasBeenSet = false;
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 Aws::String m_phoneNumber;
139 bool m_phoneNumberHasBeenSet = false;
140
141 Aws::String m_title;
142 bool m_titleHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace Account
147} // 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