AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAggregatorV2Request.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace SecurityHub
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SECURITYHUB_API CreateAggregatorV2Request() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAggregatorV2"; }
34
35 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetRegionLinkingMode() const { return m_regionLinkingMode; }
43 inline bool RegionLinkingModeHasBeenSet() const { return m_regionLinkingModeHasBeenSet; }
44 template<typename RegionLinkingModeT = Aws::String>
45 void SetRegionLinkingMode(RegionLinkingModeT&& value) { m_regionLinkingModeHasBeenSet = true; m_regionLinkingMode = std::forward<RegionLinkingModeT>(value); }
46 template<typename RegionLinkingModeT = Aws::String>
47 CreateAggregatorV2Request& WithRegionLinkingMode(RegionLinkingModeT&& value) { SetRegionLinkingMode(std::forward<RegionLinkingModeT>(value)); return *this;}
49
51
54 inline const Aws::Vector<Aws::String>& GetLinkedRegions() const { return m_linkedRegions; }
55 inline bool LinkedRegionsHasBeenSet() const { return m_linkedRegionsHasBeenSet; }
56 template<typename LinkedRegionsT = Aws::Vector<Aws::String>>
57 void SetLinkedRegions(LinkedRegionsT&& value) { m_linkedRegionsHasBeenSet = true; m_linkedRegions = std::forward<LinkedRegionsT>(value); }
58 template<typename LinkedRegionsT = Aws::Vector<Aws::String>>
59 CreateAggregatorV2Request& WithLinkedRegions(LinkedRegionsT&& value) { SetLinkedRegions(std::forward<LinkedRegionsT>(value)); return *this;}
60 template<typename LinkedRegionsT = Aws::String>
61 CreateAggregatorV2Request& AddLinkedRegions(LinkedRegionsT&& value) { m_linkedRegionsHasBeenSet = true; m_linkedRegions.emplace_back(std::forward<LinkedRegionsT>(value)); return *this; }
63
65
68 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
69 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
70 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
71 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
72 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
73 CreateAggregatorV2Request& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
74 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
75 CreateAggregatorV2Request& AddTags(TagsKeyT&& key, TagsValueT&& value) {
76 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
77 }
79
81
84 inline const Aws::String& GetClientToken() const { return m_clientToken; }
85 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
86 template<typename ClientTokenT = Aws::String>
87 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
88 template<typename ClientTokenT = Aws::String>
89 CreateAggregatorV2Request& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
91 private:
92
93 Aws::String m_regionLinkingMode;
94 bool m_regionLinkingModeHasBeenSet = false;
95
96 Aws::Vector<Aws::String> m_linkedRegions;
97 bool m_linkedRegionsHasBeenSet = false;
98
100 bool m_tagsHasBeenSet = false;
101
103 bool m_clientTokenHasBeenSet = true;
104 };
105
106} // namespace Model
107} // namespace SecurityHub
108} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateAggregatorV2Request & WithTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetLinkedRegions() const
CreateAggregatorV2Request & WithLinkedRegions(LinkedRegionsT &&value)
AWS_SECURITYHUB_API CreateAggregatorV2Request()=default
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
CreateAggregatorV2Request & WithRegionLinkingMode(RegionLinkingModeT &&value)
CreateAggregatorV2Request & WithClientToken(ClientTokenT &&value)
CreateAggregatorV2Request & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAggregatorV2Request & AddLinkedRegions(LinkedRegionsT &&value)
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