AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateScopeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/networkflowmonitor/NetworkFlowMonitorRequest.h>
10#include <aws/networkflowmonitor/NetworkFlowMonitor_EXPORTS.h>
11#include <aws/networkflowmonitor/model/TargetResource.h>
12
13#include <utility>
14
15namespace Aws {
16namespace NetworkFlowMonitor {
17namespace Model {
18
22 public:
23 AWS_NETWORKFLOWMONITOR_API UpdateScopeRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateScope"; }
30
31 AWS_NETWORKFLOWMONITOR_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetScopeId() const { return m_scopeId; }
40 inline bool ScopeIdHasBeenSet() const { return m_scopeIdHasBeenSet; }
41 template <typename ScopeIdT = Aws::String>
42 void SetScopeId(ScopeIdT&& value) {
43 m_scopeIdHasBeenSet = true;
44 m_scopeId = std::forward<ScopeIdT>(value);
45 }
46 template <typename ScopeIdT = Aws::String>
47 UpdateScopeRequest& WithScopeId(ScopeIdT&& value) {
48 SetScopeId(std::forward<ScopeIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<TargetResource>& GetResourcesToAdd() const { return m_resourcesToAdd; }
58 inline bool ResourcesToAddHasBeenSet() const { return m_resourcesToAddHasBeenSet; }
59 template <typename ResourcesToAddT = Aws::Vector<TargetResource>>
60 void SetResourcesToAdd(ResourcesToAddT&& value) {
61 m_resourcesToAddHasBeenSet = true;
62 m_resourcesToAdd = std::forward<ResourcesToAddT>(value);
63 }
64 template <typename ResourcesToAddT = Aws::Vector<TargetResource>>
65 UpdateScopeRequest& WithResourcesToAdd(ResourcesToAddT&& value) {
66 SetResourcesToAdd(std::forward<ResourcesToAddT>(value));
67 return *this;
68 }
69 template <typename ResourcesToAddT = TargetResource>
70 UpdateScopeRequest& AddResourcesToAdd(ResourcesToAddT&& value) {
71 m_resourcesToAddHasBeenSet = true;
72 m_resourcesToAdd.emplace_back(std::forward<ResourcesToAddT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Vector<TargetResource>& GetResourcesToDelete() const { return m_resourcesToDelete; }
82 inline bool ResourcesToDeleteHasBeenSet() const { return m_resourcesToDeleteHasBeenSet; }
83 template <typename ResourcesToDeleteT = Aws::Vector<TargetResource>>
84 void SetResourcesToDelete(ResourcesToDeleteT&& value) {
85 m_resourcesToDeleteHasBeenSet = true;
86 m_resourcesToDelete = std::forward<ResourcesToDeleteT>(value);
87 }
88 template <typename ResourcesToDeleteT = Aws::Vector<TargetResource>>
89 UpdateScopeRequest& WithResourcesToDelete(ResourcesToDeleteT&& value) {
90 SetResourcesToDelete(std::forward<ResourcesToDeleteT>(value));
91 return *this;
92 }
93 template <typename ResourcesToDeleteT = TargetResource>
94 UpdateScopeRequest& AddResourcesToDelete(ResourcesToDeleteT&& value) {
95 m_resourcesToDeleteHasBeenSet = true;
96 m_resourcesToDelete.emplace_back(std::forward<ResourcesToDeleteT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_scopeId;
102
103 Aws::Vector<TargetResource> m_resourcesToAdd;
104
105 Aws::Vector<TargetResource> m_resourcesToDelete;
106 bool m_scopeIdHasBeenSet = false;
107 bool m_resourcesToAddHasBeenSet = false;
108 bool m_resourcesToDeleteHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace NetworkFlowMonitor
113} // namespace Aws
UpdateScopeRequest & WithResourcesToDelete(ResourcesToDeleteT &&value)
const Aws::Vector< TargetResource > & GetResourcesToAdd() const
UpdateScopeRequest & WithResourcesToAdd(ResourcesToAddT &&value)
UpdateScopeRequest & WithScopeId(ScopeIdT &&value)
const Aws::Vector< TargetResource > & GetResourcesToDelete() const
void SetResourcesToDelete(ResourcesToDeleteT &&value)
AWS_NETWORKFLOWMONITOR_API UpdateScopeRequest()=default
UpdateScopeRequest & AddResourcesToDelete(ResourcesToDeleteT &&value)
virtual const char * GetServiceRequestName() const override
UpdateScopeRequest & AddResourcesToAdd(ResourcesToAddT &&value)
AWS_NETWORKFLOWMONITOR_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector