AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
PutContactInformationRequest.h
1
6#pragma once
7#include <aws/account/AccountRequest.h>
8#include <aws/account/Account_EXPORTS.h>
9#include <aws/account/model/ContactInformation.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 PutContactInformationRequest() = 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 "PutContactInformation"; }
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
74 inline const ContactInformation& GetContactInformation() const { return m_contactInformation; }
75 inline bool ContactInformationHasBeenSet() const { return m_contactInformationHasBeenSet; }
76 template <typename ContactInformationT = ContactInformation>
77 void SetContactInformation(ContactInformationT&& value) {
78 m_contactInformationHasBeenSet = true;
79 m_contactInformation = std::forward<ContactInformationT>(value);
80 }
81 template <typename ContactInformationT = ContactInformation>
83 SetContactInformation(std::forward<ContactInformationT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_accountId;
89 bool m_accountIdHasBeenSet = false;
90
91 ContactInformation m_contactInformation;
92 bool m_contactInformationHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace Account
97} // namespace Aws
PutContactInformationRequest & WithContactInformation(ContactInformationT &&value)
PutContactInformationRequest & WithAccountId(AccountIdT &&value)
AWS_ACCOUNT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_ACCOUNT_API PutContactInformationRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String