AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAnalyzerName(const Aws::String& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = value; }
51 inline void SetAnalyzerName(Aws::String&& value) { m_analyzerNameHasBeenSet = true; m_analyzerName = std::move(value); }
52 inline void SetAnalyzerName(const char* value) { m_analyzerNameHasBeenSet = true; m_analyzerName.assign(value); }
53 inline CreateAnalyzerRequest& WithAnalyzerName(const Aws::String& value) { SetAnalyzerName(value); return *this;}
54 inline CreateAnalyzerRequest& WithAnalyzerName(Aws::String&& value) { SetAnalyzerName(std::move(value)); return *this;}
55 inline CreateAnalyzerRequest& WithAnalyzerName(const char* value) { SetAnalyzerName(value); return *this;}
57
59
66 inline const Type& GetType() const{ return m_type; }
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
69 inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
70 inline CreateAnalyzerRequest& WithType(const Type& value) { SetType(value); return *this;}
71 inline CreateAnalyzerRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;}
73
75
80 inline const Aws::Vector<InlineArchiveRule>& GetArchiveRules() const{ return m_archiveRules; }
81 inline bool ArchiveRulesHasBeenSet() const { return m_archiveRulesHasBeenSet; }
82 inline void SetArchiveRules(const Aws::Vector<InlineArchiveRule>& value) { m_archiveRulesHasBeenSet = true; m_archiveRules = value; }
83 inline void SetArchiveRules(Aws::Vector<InlineArchiveRule>&& value) { m_archiveRulesHasBeenSet = true; m_archiveRules = std::move(value); }
85 inline CreateAnalyzerRequest& WithArchiveRules(Aws::Vector<InlineArchiveRule>&& value) { SetArchiveRules(std::move(value)); return *this;}
86 inline CreateAnalyzerRequest& AddArchiveRules(const InlineArchiveRule& value) { m_archiveRulesHasBeenSet = true; m_archiveRules.push_back(value); return *this; }
87 inline CreateAnalyzerRequest& AddArchiveRules(InlineArchiveRule&& value) { m_archiveRulesHasBeenSet = true; m_archiveRules.push_back(std::move(value)); return *this; }
89
91
94 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
97 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
98 inline CreateAnalyzerRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
99 inline CreateAnalyzerRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
100 inline CreateAnalyzerRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
101 inline CreateAnalyzerRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
102 inline CreateAnalyzerRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
103 inline CreateAnalyzerRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
104 inline CreateAnalyzerRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
105 inline CreateAnalyzerRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
106 inline CreateAnalyzerRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
108
110
113 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
114 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
115 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
116 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
117 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
118 inline CreateAnalyzerRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
119 inline CreateAnalyzerRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
120 inline CreateAnalyzerRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
122
124
130 inline const AnalyzerConfiguration& GetConfiguration() const{ return m_configuration; }
131 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
132 inline void SetConfiguration(const AnalyzerConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
133 inline void SetConfiguration(AnalyzerConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
135 inline CreateAnalyzerRequest& WithConfiguration(AnalyzerConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
137 private:
138
139 Aws::String m_analyzerName;
140 bool m_analyzerNameHasBeenSet = false;
141
142 Type m_type;
143 bool m_typeHasBeenSet = false;
144
145 Aws::Vector<InlineArchiveRule> m_archiveRules;
146 bool m_archiveRulesHasBeenSet = false;
147
149 bool m_tagsHasBeenSet = false;
150
151 Aws::String m_clientToken;
152 bool m_clientTokenHasBeenSet = false;
153
154 AnalyzerConfiguration m_configuration;
155 bool m_configurationHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace AccessAnalyzer
160} // namespace Aws
const Aws::Vector< InlineArchiveRule > & GetArchiveRules() const
virtual const char * GetServiceRequestName() const override
CreateAnalyzerRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAnalyzerRequest & WithArchiveRules(Aws::Vector< InlineArchiveRule > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAnalyzerRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetConfiguration(AnalyzerConfiguration &&value)
CreateAnalyzerRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAnalyzerRequest & WithClientToken(Aws::String &&value)
CreateAnalyzerRequest & WithClientToken(const Aws::String &value)
CreateAnalyzerRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAnalyzerRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetConfiguration(const AnalyzerConfiguration &value)
CreateAnalyzerRequest & AddArchiveRules(InlineArchiveRule &&value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
CreateAnalyzerRequest & WithAnalyzerName(Aws::String &&value)
CreateAnalyzerRequest & WithAnalyzerName(const char *value)
const AnalyzerConfiguration & GetConfiguration() const
CreateAnalyzerRequest & WithClientToken(const char *value)
CreateAnalyzerRequest & WithType(Type &&value)
CreateAnalyzerRequest & AddTags(Aws::String &&key, const char *value)
CreateAnalyzerRequest & WithArchiveRules(const Aws::Vector< InlineArchiveRule > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetArchiveRules(Aws::Vector< InlineArchiveRule > &&value)
CreateAnalyzerRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAnalyzerRequest & AddTags(const char *key, Aws::String &&value)
CreateAnalyzerRequest & WithType(const Type &value)
CreateAnalyzerRequest & WithAnalyzerName(const Aws::String &value)
CreateAnalyzerRequest & AddArchiveRules(const InlineArchiveRule &value)
void SetArchiveRules(const Aws::Vector< InlineArchiveRule > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAnalyzerRequest & AddTags(const char *key, const char *value)
CreateAnalyzerRequest & WithConfiguration(const AnalyzerConfiguration &value)
CreateAnalyzerRequest & WithConfiguration(AnalyzerConfiguration &&value)
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