AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
PutAccountNameRequest.h
1
6#pragma once
7#include <aws/account/AccountRequest.h>
8#include <aws/account/Account_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Account {
15namespace Model {
16
20 public:
21 AWS_ACCOUNT_API PutAccountNameRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "PutAccountName"; }
28
29 AWS_ACCOUNT_API Aws::String SerializePayload() const override;
30
32
54 inline const Aws::String& GetAccountId() const { return m_accountId; }
55 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
56 template <typename AccountIdT = Aws::String>
57 void SetAccountId(AccountIdT&& value) {
58 m_accountIdHasBeenSet = true;
59 m_accountId = std::forward<AccountIdT>(value);
60 }
61 template <typename AccountIdT = Aws::String>
62 PutAccountNameRequest& WithAccountId(AccountIdT&& value) {
63 SetAccountId(std::forward<AccountIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetAccountName() const { return m_accountName; }
73 inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
74 template <typename AccountNameT = Aws::String>
75 void SetAccountName(AccountNameT&& value) {
76 m_accountNameHasBeenSet = true;
77 m_accountName = std::forward<AccountNameT>(value);
78 }
79 template <typename AccountNameT = Aws::String>
80 PutAccountNameRequest& WithAccountName(AccountNameT&& value) {
81 SetAccountName(std::forward<AccountNameT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_accountId;
87 bool m_accountIdHasBeenSet = false;
88
89 Aws::String m_accountName;
90 bool m_accountNameHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace Account
95} // namespace Aws
AWS_ACCOUNT_API Aws::String SerializePayload() const override
AWS_ACCOUNT_API PutAccountNameRequest()=default
virtual const char * GetServiceRequestName() const override
PutAccountNameRequest & WithAccountId(AccountIdT &&value)
PutAccountNameRequest & WithAccountName(AccountNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String