AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateAccessPreviewRequest.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/core/utils/memory/stl/AWSMap.h>
11#include <aws/accessanalyzer/model/Configuration.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace AccessAnalyzer
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ACCESSANALYZER_API CreateAccessPreviewRequest() = 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 "CreateAccessPreview"; }
34
35 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
36
37
39
46 inline const Aws::String& GetAnalyzerArn() const { return m_analyzerArn; }
47 inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
48 template<typename AnalyzerArnT = Aws::String>
49 void SetAnalyzerArn(AnalyzerArnT&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::forward<AnalyzerArnT>(value); }
50 template<typename AnalyzerArnT = Aws::String>
51 CreateAccessPreviewRequest& WithAnalyzerArn(AnalyzerArnT&& value) { SetAnalyzerArn(std::forward<AnalyzerArnT>(value)); return *this;}
53
55
61 inline const Aws::Map<Aws::String, Configuration>& GetConfigurations() const { return m_configurations; }
62 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
63 template<typename ConfigurationsT = Aws::Map<Aws::String, Configuration>>
64 void SetConfigurations(ConfigurationsT&& value) { m_configurationsHasBeenSet = true; m_configurations = std::forward<ConfigurationsT>(value); }
65 template<typename ConfigurationsT = Aws::Map<Aws::String, Configuration>>
66 CreateAccessPreviewRequest& WithConfigurations(ConfigurationsT&& value) { SetConfigurations(std::forward<ConfigurationsT>(value)); return *this;}
67 template<typename ConfigurationsKeyT = Aws::String, typename ConfigurationsValueT = Configuration>
68 CreateAccessPreviewRequest& AddConfigurations(ConfigurationsKeyT&& key, ConfigurationsValueT&& value) {
69 m_configurationsHasBeenSet = true; m_configurations.emplace(std::forward<ConfigurationsKeyT>(key), std::forward<ConfigurationsValueT>(value)); return *this;
70 }
72
74
77 inline const Aws::String& GetClientToken() const { return m_clientToken; }
78 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
79 template<typename ClientTokenT = Aws::String>
80 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
81 template<typename ClientTokenT = Aws::String>
82 CreateAccessPreviewRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
84 private:
85
86 Aws::String m_analyzerArn;
87 bool m_analyzerArnHasBeenSet = false;
88
90 bool m_configurationsHasBeenSet = false;
91
93 bool m_clientTokenHasBeenSet = true;
94 };
95
96} // namespace Model
97} // namespace AccessAnalyzer
98} // 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