AWS SDK for C++

AWS SDK for C++ Version 1.11.809

Loading...
Searching...
No Matches
CreateServiceLinkedAnalyzerRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
8#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
9#include <aws/accessanalyzer/model/AnalyzerConfiguration.h>
10#include <aws/accessanalyzer/model/InlineArchiveRule.h>
11#include <aws/accessanalyzer/model/Type.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace AccessAnalyzer {
20namespace Model {
21
28 public:
29 AWS_ACCESSANALYZER_API CreateServiceLinkedAnalyzerRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateServiceLinkedAnalyzer"; }
36
37 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
38
40
45 inline Type GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(Type value) {
48 m_typeHasBeenSet = true;
49 m_type = value;
50 }
52 SetType(value);
53 return *this;
54 }
56
58
63 inline const Aws::Vector<InlineArchiveRule>& GetArchiveRules() const { return m_archiveRules; }
64 inline bool ArchiveRulesHasBeenSet() const { return m_archiveRulesHasBeenSet; }
65 template <typename ArchiveRulesT = Aws::Vector<InlineArchiveRule>>
66 void SetArchiveRules(ArchiveRulesT&& value) {
67 m_archiveRulesHasBeenSet = true;
68 m_archiveRules = std::forward<ArchiveRulesT>(value);
69 }
70 template <typename ArchiveRulesT = Aws::Vector<InlineArchiveRule>>
72 SetArchiveRules(std::forward<ArchiveRulesT>(value));
73 return *this;
74 }
75 template <typename ArchiveRulesT = InlineArchiveRule>
77 m_archiveRulesHasBeenSet = true;
78 m_archiveRules.emplace_back(std::forward<ArchiveRulesT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetClientToken() const { return m_clientToken; }
88 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
89 template <typename ClientTokenT = Aws::String>
90 void SetClientToken(ClientTokenT&& value) {
91 m_clientTokenHasBeenSet = true;
92 m_clientToken = std::forward<ClientTokenT>(value);
93 }
94 template <typename ClientTokenT = Aws::String>
96 SetClientToken(std::forward<ClientTokenT>(value));
97 return *this;
98 }
100
102
106 inline const AnalyzerConfiguration& GetConfiguration() const { return m_configuration; }
107 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
108 template <typename ConfigurationT = AnalyzerConfiguration>
109 void SetConfiguration(ConfigurationT&& value) {
110 m_configurationHasBeenSet = true;
111 m_configuration = std::forward<ConfigurationT>(value);
112 }
113 template <typename ConfigurationT = AnalyzerConfiguration>
115 SetConfiguration(std::forward<ConfigurationT>(value));
116 return *this;
117 }
119 private:
120 Type m_type{Type::NOT_SET};
121
122 Aws::Vector<InlineArchiveRule> m_archiveRules;
123
125
126 AnalyzerConfiguration m_configuration;
127 bool m_typeHasBeenSet = false;
128 bool m_archiveRulesHasBeenSet = false;
129 bool m_clientTokenHasBeenSet = true;
130 bool m_configurationHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace AccessAnalyzer
135} // namespace Aws
AWS_ACCESSANALYZER_API CreateServiceLinkedAnalyzerRequest()=default
CreateServiceLinkedAnalyzerRequest & AddArchiveRules(ArchiveRulesT &&value)
CreateServiceLinkedAnalyzerRequest & WithConfiguration(ConfigurationT &&value)
CreateServiceLinkedAnalyzerRequest & WithClientToken(ClientTokenT &&value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
CreateServiceLinkedAnalyzerRequest & WithArchiveRules(ArchiveRulesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector