AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
PutAdminAccountRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/network-security-manager/NetworkSecurityManagerRequest.h>
9#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
10#include <aws/network-security-manager/model/AdminScopeInput.h>
11
12#include <utility>
13
14namespace Aws {
15namespace NetworkSecurityManager {
16namespace Model {
17
21 public:
22 AWS_NETWORKSECURITYMANAGER_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_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetAccountId() const { return m_accountId; }
38 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
39 template <typename AccountIdT = Aws::String>
40 void SetAccountId(AccountIdT&& value) {
41 m_accountIdHasBeenSet = true;
42 m_accountId = std::forward<AccountIdT>(value);
43 }
44 template <typename AccountIdT = Aws::String>
46 SetAccountId(std::forward<AccountIdT>(value));
47 return *this;
48 }
50
52
55 inline int GetPriority() const { return m_priority; }
56 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
57 inline void SetPriority(int value) {
58 m_priorityHasBeenSet = true;
59 m_priority = value;
60 }
62 SetPriority(value);
63 return *this;
64 }
66
68
72 inline const AdminScopeInput& GetAdminScope() const { return m_adminScope; }
73 inline bool AdminScopeHasBeenSet() const { return m_adminScopeHasBeenSet; }
74 template <typename AdminScopeT = AdminScopeInput>
75 void SetAdminScope(AdminScopeT&& value) {
76 m_adminScopeHasBeenSet = true;
77 m_adminScope = std::forward<AdminScopeT>(value);
78 }
79 template <typename AdminScopeT = AdminScopeInput>
80 PutAdminAccountRequest& WithAdminScope(AdminScopeT&& value) {
81 SetAdminScope(std::forward<AdminScopeT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_accountId;
87
88 int m_priority{0};
89
90 AdminScopeInput m_adminScope;
91 bool m_accountIdHasBeenSet = false;
92 bool m_priorityHasBeenSet = false;
93 bool m_adminScopeHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace NetworkSecurityManager
98} // namespace Aws
PutAdminAccountRequest & WithAdminScope(AdminScopeT &&value)
AWS_NETWORKSECURITYMANAGER_API Aws::String SerializePayload() const override
PutAdminAccountRequest & WithAccountId(AccountIdT &&value)
AWS_NETWORKSECURITYMANAGER_API PutAdminAccountRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String