AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateAnalyzerRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/accessanalyzer/model/Type.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/accessanalyzer/model/AnalyzerConfiguration.h>
14#include <aws/accessanalyzer/model/InlineArchiveRule.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace AccessAnalyzer
21{
22namespace Model
23{
24
31 {
32 public:
33 AWS_ACCESSANALYZER_API CreateAnalyzerRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateAnalyzer"; }
40
41 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
42
43
45
48 inline const Aws::String& GetAnalyzerName() const { return m_analyzerName; }
49 inline bool AnalyzerNameHasBeenSet() const { return m_analyzerNameHasBeenSet; }
50 template<typename AnalyzerNameT = Aws::String>
51 void SetAnalyzerName(AnalyzerNameT&& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = std::forward<AnalyzerNameT>(value); }
52 template<typename AnalyzerNameT = Aws::String>
53 CreateAnalyzerRequest& WithAnalyzerName(AnalyzerNameT&& value) { SetAnalyzerName(std::forward<AnalyzerNameT>(value)); return *this;}
55
57
61 inline Type GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(Type value) { m_typeHasBeenSet = true; m_type = value; }
64 inline CreateAnalyzerRequest& WithType(Type value) { SetType(value); return *this;}
66
68
73 inline const Aws::Vector<InlineArchiveRule>& GetArchiveRules() const { return m_archiveRules; }
74 inline bool ArchiveRulesHasBeenSet() const { return m_archiveRulesHasBeenSet; }
75 template<typename ArchiveRulesT = Aws::Vector<InlineArchiveRule>>
76 void SetArchiveRules(ArchiveRulesT&& value) { m_archiveRulesHasBeenSet = true; m_archiveRules = std::forward<ArchiveRulesT>(value); }
77 template<typename ArchiveRulesT = Aws::Vector<InlineArchiveRule>>
78 CreateAnalyzerRequest& WithArchiveRules(ArchiveRulesT&& value) { SetArchiveRules(std::forward<ArchiveRulesT>(value)); return *this;}
79 template<typename ArchiveRulesT = InlineArchiveRule>
80 CreateAnalyzerRequest& AddArchiveRules(ArchiveRulesT&& value) { m_archiveRulesHasBeenSet = true; m_archiveRules.emplace_back(std::forward<ArchiveRulesT>(value)); return *this; }
82
84
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
96 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 CreateAnalyzerRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
98 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
99 CreateAnalyzerRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
100 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
101 }
103
105
108 inline const Aws::String& GetClientToken() const { return m_clientToken; }
109 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
110 template<typename ClientTokenT = Aws::String>
111 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
112 template<typename ClientTokenT = Aws::String>
113 CreateAnalyzerRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
115
117
123 inline const AnalyzerConfiguration& GetConfiguration() const { return m_configuration; }
124 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
125 template<typename ConfigurationT = AnalyzerConfiguration>
126 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
127 template<typename ConfigurationT = AnalyzerConfiguration>
128 CreateAnalyzerRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
130 private:
131
132 Aws::String m_analyzerName;
133 bool m_analyzerNameHasBeenSet = false;
134
135 Type m_type{Type::NOT_SET};
136 bool m_typeHasBeenSet = false;
137
138 Aws::Vector<InlineArchiveRule> m_archiveRules;
139 bool m_archiveRulesHasBeenSet = false;
140
142 bool m_tagsHasBeenSet = false;
143
145 bool m_clientTokenHasBeenSet = true;
146
147 AnalyzerConfiguration m_configuration;
148 bool m_configurationHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace AccessAnalyzer
153} // namespace Aws
const Aws::Vector< InlineArchiveRule > & GetArchiveRules() const
virtual const char * GetServiceRequestName() const override
CreateAnalyzerRequest & WithArchiveRules(ArchiveRulesT &&value)
CreateAnalyzerRequest & WithAnalyzerName(AnalyzerNameT &&value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
CreateAnalyzerRequest & WithTags(TagsT &&value)
CreateAnalyzerRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const AnalyzerConfiguration & GetConfiguration() const
CreateAnalyzerRequest & AddArchiveRules(ArchiveRulesT &&value)
AWS_ACCESSANALYZER_API CreateAnalyzerRequest()=default
CreateAnalyzerRequest & WithConfiguration(ConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAnalyzerRequest & WithClientToken(ClientTokenT &&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