AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
49 inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
50 inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
51 inline CreateAccessPreviewRequest& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
52 inline CreateAccessPreviewRequest& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
53 inline CreateAccessPreviewRequest& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
55
57
63 inline const Aws::Map<Aws::String, Configuration>& GetConfigurations() const{ return m_configurations; }
64 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
65 inline void SetConfigurations(const Aws::Map<Aws::String, Configuration>& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
66 inline void SetConfigurations(Aws::Map<Aws::String, Configuration>&& value) { m_configurationsHasBeenSet = true; m_configurations = std::move(value); }
69 inline CreateAccessPreviewRequest& AddConfigurations(const Aws::String& key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, value); return *this; }
70 inline CreateAccessPreviewRequest& AddConfigurations(Aws::String&& key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(std::move(key), value); return *this; }
71 inline CreateAccessPreviewRequest& AddConfigurations(const Aws::String& key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, std::move(value)); return *this; }
72 inline CreateAccessPreviewRequest& AddConfigurations(Aws::String&& key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(std::move(key), std::move(value)); return *this; }
73 inline CreateAccessPreviewRequest& AddConfigurations(const char* key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, std::move(value)); return *this; }
74 inline CreateAccessPreviewRequest& AddConfigurations(const char* key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, value); return *this; }
76
78
81 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
82 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
83 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
84 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
85 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
86 inline CreateAccessPreviewRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
87 inline CreateAccessPreviewRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
88 inline CreateAccessPreviewRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
90 private:
91
92 Aws::String m_analyzerArn;
93 bool m_analyzerArnHasBeenSet = false;
94
96 bool m_configurationsHasBeenSet = false;
97
98 Aws::String m_clientToken;
99 bool m_clientTokenHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace AccessAnalyzer
104} // namespace Aws
CreateAccessPreviewRequest & WithConfigurations(const Aws::Map< Aws::String, Configuration > &value)
CreateAccessPreviewRequest & AddConfigurations(const Aws::String &key, Configuration &&value)
CreateAccessPreviewRequest & AddConfigurations(Aws::String &&key, Configuration &&value)
CreateAccessPreviewRequest & WithAnalyzerArn(Aws::String &&value)
const Aws::Map< Aws::String, Configuration > & GetConfigurations() const
CreateAccessPreviewRequest & WithConfigurations(Aws::Map< Aws::String, Configuration > &&value)
CreateAccessPreviewRequest & AddConfigurations(const char *key, const Configuration &value)
CreateAccessPreviewRequest & AddConfigurations(Aws::String &&key, const Configuration &value)
void SetConfigurations(Aws::Map< Aws::String, Configuration > &&value)
CreateAccessPreviewRequest & WithClientToken(Aws::String &&value)
CreateAccessPreviewRequest & WithClientToken(const char *value)
CreateAccessPreviewRequest & WithAnalyzerArn(const char *value)
CreateAccessPreviewRequest & WithAnalyzerArn(const Aws::String &value)
CreateAccessPreviewRequest & WithClientToken(const Aws::String &value)
void SetConfigurations(const Aws::Map< Aws::String, Configuration > &value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
CreateAccessPreviewRequest & AddConfigurations(const Aws::String &key, const Configuration &value)
CreateAccessPreviewRequest & AddConfigurations(const char *key, Configuration &&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