AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateScopeRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/networkflowmonitor/NetworkFlowMonitorRequest.h>
12#include <aws/networkflowmonitor/NetworkFlowMonitor_EXPORTS.h>
13#include <aws/networkflowmonitor/model/TargetResource.h>
14
15#include <utility>
16
17namespace Aws {
18namespace NetworkFlowMonitor {
19namespace Model {
20
24 public:
25 AWS_NETWORKFLOWMONITOR_API CreateScopeRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateScope"; }
32
33 AWS_NETWORKFLOWMONITOR_API Aws::String SerializePayload() const override;
34
36
41 inline const Aws::Vector<TargetResource>& GetTargets() const { return m_targets; }
42 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
43 template <typename TargetsT = Aws::Vector<TargetResource>>
44 void SetTargets(TargetsT&& value) {
45 m_targetsHasBeenSet = true;
46 m_targets = std::forward<TargetsT>(value);
47 }
48 template <typename TargetsT = Aws::Vector<TargetResource>>
49 CreateScopeRequest& WithTargets(TargetsT&& value) {
50 SetTargets(std::forward<TargetsT>(value));
51 return *this;
52 }
53 template <typename TargetsT = TargetResource>
54 CreateScopeRequest& AddTargets(TargetsT&& value) {
55 m_targetsHasBeenSet = true;
56 m_targets.emplace_back(std::forward<TargetsT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetClientToken() const { return m_clientToken; }
68 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
69 template <typename ClientTokenT = Aws::String>
70 void SetClientToken(ClientTokenT&& value) {
71 m_clientTokenHasBeenSet = true;
72 m_clientToken = std::forward<ClientTokenT>(value);
73 }
74 template <typename ClientTokenT = Aws::String>
75 CreateScopeRequest& WithClientToken(ClientTokenT&& value) {
76 SetClientToken(std::forward<ClientTokenT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
88 void SetTags(TagsT&& value) {
89 m_tagsHasBeenSet = true;
90 m_tags = std::forward<TagsT>(value);
91 }
92 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
93 CreateScopeRequest& WithTags(TagsT&& value) {
94 SetTags(std::forward<TagsT>(value));
95 return *this;
96 }
97 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
98 CreateScopeRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
99 m_tagsHasBeenSet = true;
100 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
101 return *this;
102 }
104 private:
106
108
110 bool m_targetsHasBeenSet = false;
111 bool m_clientTokenHasBeenSet = true;
112 bool m_tagsHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace NetworkFlowMonitor
117} // namespace Aws
CreateScopeRequest & WithClientToken(ClientTokenT &&value)
CreateScopeRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateScopeRequest & WithTargets(TargetsT &&value)
AWS_NETWORKFLOWMONITOR_API CreateScopeRequest()=default
const Aws::Vector< TargetResource > & GetTargets() const
AWS_NETWORKFLOWMONITOR_API Aws::String SerializePayload() const override
CreateScopeRequest & AddTargets(TargetsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector