AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
62 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
63 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
64 inline PutAlternateContactRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
65 inline PutAlternateContactRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
66 inline PutAlternateContactRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
68
70
73 inline const AlternateContactType& GetAlternateContactType() const{ return m_alternateContactType; }
74 inline bool AlternateContactTypeHasBeenSet() const { return m_alternateContactTypeHasBeenSet; }
75 inline void SetAlternateContactType(const AlternateContactType& value) { m_alternateContactTypeHasBeenSet = true; m_alternateContactType = value; }
76 inline void SetAlternateContactType(AlternateContactType&& value) { m_alternateContactTypeHasBeenSet = true; m_alternateContactType = std::move(value); }
80
82
85 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
86 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
87 inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
88 inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
89 inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
90 inline PutAlternateContactRequest& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
91 inline PutAlternateContactRequest& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
92 inline PutAlternateContactRequest& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
94
96
99 inline const Aws::String& GetName() const{ return m_name; }
100 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
102 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
103 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
104 inline PutAlternateContactRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
105 inline PutAlternateContactRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
106 inline PutAlternateContactRequest& WithName(const char* value) { SetName(value); return *this;}
108
110
113 inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
114 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
115 inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
116 inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
117 inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
118 inline PutAlternateContactRequest& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
119 inline PutAlternateContactRequest& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
120 inline PutAlternateContactRequest& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
122
124
127 inline const Aws::String& GetTitle() const{ return m_title; }
128 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
129 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
130 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
131 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
132 inline PutAlternateContactRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
133 inline PutAlternateContactRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
134 inline PutAlternateContactRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
136 private:
137
138 Aws::String m_accountId;
139 bool m_accountIdHasBeenSet = false;
140
141 AlternateContactType m_alternateContactType;
142 bool m_alternateContactTypeHasBeenSet = false;
143
144 Aws::String m_emailAddress;
145 bool m_emailAddressHasBeenSet = false;
146
147 Aws::String m_name;
148 bool m_nameHasBeenSet = false;
149
150 Aws::String m_phoneNumber;
151 bool m_phoneNumberHasBeenSet = false;
152
153 Aws::String m_title;
154 bool m_titleHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace Account
159} // namespace Aws
PutAlternateContactRequest & WithAccountId(const Aws::String &value)
PutAlternateContactRequest & WithPhoneNumber(const Aws::String &value)
PutAlternateContactRequest & WithPhoneNumber(Aws::String &&value)
PutAlternateContactRequest & WithEmailAddress(const Aws::String &value)
PutAlternateContactRequest & WithAlternateContactType(const AlternateContactType &value)
const AlternateContactType & GetAlternateContactType() const
void SetAlternateContactType(AlternateContactType &&value)
PutAlternateContactRequest & WithAccountId(Aws::String &&value)
PutAlternateContactRequest & WithEmailAddress(const char *value)
PutAlternateContactRequest & WithName(const char *value)
PutAlternateContactRequest & WithTitle(const char *value)
PutAlternateContactRequest & WithName(const Aws::String &value)
PutAlternateContactRequest & WithAlternateContactType(AlternateContactType &&value)
AWS_ACCOUNT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
PutAlternateContactRequest & WithTitle(Aws::String &&value)
PutAlternateContactRequest & WithTitle(const Aws::String &value)
void SetAlternateContactType(const AlternateContactType &value)
PutAlternateContactRequest & WithAccountId(const char *value)
PutAlternateContactRequest & WithPhoneNumber(const char *value)
PutAlternateContactRequest & WithEmailAddress(Aws::String &&value)
PutAlternateContactRequest & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String