AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateAccessPreviewRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
8#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
9#include <aws/accessanalyzer/model/Configuration.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AccessAnalyzer {
18namespace Model {
19
23 public:
24 AWS_ACCESSANALYZER_API CreateAccessPreviewRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateAccessPreview"; }
31
32 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
33
35
42 inline const Aws::String& GetAnalyzerArn() const { return m_analyzerArn; }
43 inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
44 template <typename AnalyzerArnT = Aws::String>
45 void SetAnalyzerArn(AnalyzerArnT&& value) {
46 m_analyzerArnHasBeenSet = true;
47 m_analyzerArn = std::forward<AnalyzerArnT>(value);
48 }
49 template <typename AnalyzerArnT = Aws::String>
51 SetAnalyzerArn(std::forward<AnalyzerArnT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::Map<Aws::String, Configuration>& GetConfigurations() const { return m_configurations; }
64 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
65 template <typename ConfigurationsT = Aws::Map<Aws::String, Configuration>>
66 void SetConfigurations(ConfigurationsT&& value) {
67 m_configurationsHasBeenSet = true;
68 m_configurations = std::forward<ConfigurationsT>(value);
69 }
70 template <typename ConfigurationsT = Aws::Map<Aws::String, Configuration>>
72 SetConfigurations(std::forward<ConfigurationsT>(value));
73 return *this;
74 }
75 template <typename ConfigurationsKeyT = Aws::String, typename ConfigurationsValueT = Configuration>
76 CreateAccessPreviewRequest& AddConfigurations(ConfigurationsKeyT&& key, ConfigurationsValueT&& value) {
77 m_configurationsHasBeenSet = true;
78 m_configurations.emplace(std::forward<ConfigurationsKeyT>(key), std::forward<ConfigurationsValueT>(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 private:
101 Aws::String m_analyzerArn;
102
104
106 bool m_analyzerArnHasBeenSet = false;
107 bool m_configurationsHasBeenSet = false;
108 bool m_clientTokenHasBeenSet = true;
109};
110
111} // namespace Model
112} // namespace AccessAnalyzer
113} // namespace Aws
CreateAccessPreviewRequest & WithConfigurations(ConfigurationsT &&value)
const Aws::Map< Aws::String, Configuration > & GetConfigurations() const
AWS_ACCESSANALYZER_API CreateAccessPreviewRequest()=default
CreateAccessPreviewRequest & WithClientToken(ClientTokenT &&value)
CreateAccessPreviewRequest & WithAnalyzerArn(AnalyzerArnT &&value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
CreateAccessPreviewRequest & AddConfigurations(ConfigurationsKeyT &&key, ConfigurationsValueT &&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