AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutAdminAccountRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fms/FMSRequest.h>
9#include <aws/fms/FMS_EXPORTS.h>
10#include <aws/fms/model/AdminScope.h>
11
12#include <utility>
13
14namespace Aws {
15namespace FMS {
16namespace Model {
17
21 public:
22 AWS_FMS_API PutAdminAccountRequest() = 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 "PutAdminAccount"; }
29
30 AWS_FMS_API Aws::String SerializePayload() const override;
31
33
35
43 inline const Aws::String& GetAdminAccount() const { return m_adminAccount; }
44 inline bool AdminAccountHasBeenSet() const { return m_adminAccountHasBeenSet; }
45 template <typename AdminAccountT = Aws::String>
46 void SetAdminAccount(AdminAccountT&& value) {
47 m_adminAccountHasBeenSet = true;
48 m_adminAccount = std::forward<AdminAccountT>(value);
49 }
50 template <typename AdminAccountT = Aws::String>
51 PutAdminAccountRequest& WithAdminAccount(AdminAccountT&& value) {
52 SetAdminAccount(std::forward<AdminAccountT>(value));
53 return *this;
54 }
56
58
64 inline const AdminScope& GetAdminScope() const { return m_adminScope; }
65 inline bool AdminScopeHasBeenSet() const { return m_adminScopeHasBeenSet; }
66 template <typename AdminScopeT = AdminScope>
67 void SetAdminScope(AdminScopeT&& value) {
68 m_adminScopeHasBeenSet = true;
69 m_adminScope = std::forward<AdminScopeT>(value);
70 }
71 template <typename AdminScopeT = AdminScope>
72 PutAdminAccountRequest& WithAdminScope(AdminScopeT&& value) {
73 SetAdminScope(std::forward<AdminScopeT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_adminAccount;
79
80 AdminScope m_adminScope;
81 bool m_adminAccountHasBeenSet = false;
82 bool m_adminScopeHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace FMS
87} // namespace Aws
AWS_FMS_API PutAdminAccountRequest()=default
AWS_FMS_API Aws::String SerializePayload() const override
AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutAdminAccountRequest & WithAdminAccount(AdminAccountT &&value)
virtual const char * GetServiceRequestName() const override
PutAdminAccountRequest & WithAdminScope(AdminScopeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String