AWS SDK for C++  1.9.129
AWS SDK for C++
CreateAccessPreviewRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace AccessAnalyzer
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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::String SerializePayload() const override;
36 
37 
45  inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; }
46 
54  inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
55 
63  inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
64 
72  inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
73 
81  inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
82 
90  inline CreateAccessPreviewRequest& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
91 
99  inline CreateAccessPreviewRequest& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
100 
108  inline CreateAccessPreviewRequest& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
109 
110 
114  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
115 
119  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
120 
124  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
125 
129  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
130 
134  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
135 
139  inline CreateAccessPreviewRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
140 
144  inline CreateAccessPreviewRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
145 
149  inline CreateAccessPreviewRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
150 
151 
158  inline const Aws::Map<Aws::String, Configuration>& GetConfigurations() const{ return m_configurations; }
159 
166  inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
167 
174  inline void SetConfigurations(const Aws::Map<Aws::String, Configuration>& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
175 
182  inline void SetConfigurations(Aws::Map<Aws::String, Configuration>&& value) { m_configurationsHasBeenSet = true; m_configurations = std::move(value); }
183 
190  inline CreateAccessPreviewRequest& WithConfigurations(const Aws::Map<Aws::String, Configuration>& value) { SetConfigurations(value); return *this;}
191 
198  inline CreateAccessPreviewRequest& WithConfigurations(Aws::Map<Aws::String, Configuration>&& value) { SetConfigurations(std::move(value)); return *this;}
199 
206  inline CreateAccessPreviewRequest& AddConfigurations(const Aws::String& key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, value); return *this; }
207 
214  inline CreateAccessPreviewRequest& AddConfigurations(Aws::String&& key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(std::move(key), value); return *this; }
215 
222  inline CreateAccessPreviewRequest& AddConfigurations(const Aws::String& key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, std::move(value)); return *this; }
223 
230  inline CreateAccessPreviewRequest& AddConfigurations(Aws::String&& key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(std::move(key), std::move(value)); return *this; }
231 
238  inline CreateAccessPreviewRequest& AddConfigurations(const char* key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, std::move(value)); return *this; }
239 
246  inline CreateAccessPreviewRequest& AddConfigurations(const char* key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, value); return *this; }
247 
248  private:
249 
250  Aws::String m_analyzerArn;
251  bool m_analyzerArnHasBeenSet;
252 
253  Aws::String m_clientToken;
254  bool m_clientTokenHasBeenSet;
255 
256  Aws::Map<Aws::String, Configuration> m_configurations;
257  bool m_configurationsHasBeenSet;
258  };
259 
260 } // namespace Model
261 } // namespace AccessAnalyzer
262 } // namespace Aws
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::AnalyzerArnHasBeenSet
bool AnalyzerArnHasBeenSet() const
Definition: CreateAccessPreviewRequest.h:54
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::SerializePayload
Aws::String SerializePayload() const override
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateAccessPreviewRequest.h:124
Aws::AccessAnalyzer::AccessAnalyzerRequest
Definition: AccessAnalyzerRequest.h:17
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateAccessPreviewRequest.h:134
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateAccessPreviewRequest.h:114
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::WithClientToken
CreateAccessPreviewRequest & WithClientToken(Aws::String &&value)
Definition: CreateAccessPreviewRequest.h:144
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateAccessPreviewRequest.h:129
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::WithConfigurations
CreateAccessPreviewRequest & WithConfigurations(const Aws::Map< Aws::String, Configuration > &value)
Definition: CreateAccessPreviewRequest.h:190
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::ConfigurationsHasBeenSet
bool ConfigurationsHasBeenSet() const
Definition: CreateAccessPreviewRequest.h:166
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::WithConfigurations
CreateAccessPreviewRequest & WithConfigurations(Aws::Map< Aws::String, Configuration > &&value)
Definition: CreateAccessPreviewRequest.h:198
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::AddConfigurations
CreateAccessPreviewRequest & AddConfigurations(const char *key, const Configuration &value)
Definition: CreateAccessPreviewRequest.h:246
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAccessPreviewRequest.h:33
AccessAnalyzerRequest.h
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::SetAnalyzerArn
void SetAnalyzerArn(const char *value)
Definition: CreateAccessPreviewRequest.h:81
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::AddConfigurations
CreateAccessPreviewRequest & AddConfigurations(Aws::String &&key, const Configuration &value)
Definition: CreateAccessPreviewRequest.h:214
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::WithAnalyzerArn
CreateAccessPreviewRequest & WithAnalyzerArn(const Aws::String &value)
Definition: CreateAccessPreviewRequest.h:90
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::WithAnalyzerArn
CreateAccessPreviewRequest & WithAnalyzerArn(const char *value)
Definition: CreateAccessPreviewRequest.h:108
Configuration.h
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest
Definition: CreateAccessPreviewRequest.h:25
AWSString.h
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::AddConfigurations
CreateAccessPreviewRequest & AddConfigurations(const char *key, Configuration &&value)
Definition: CreateAccessPreviewRequest.h:238
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::WithAnalyzerArn
CreateAccessPreviewRequest & WithAnalyzerArn(Aws::String &&value)
Definition: CreateAccessPreviewRequest.h:99
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::WithClientToken
CreateAccessPreviewRequest & WithClientToken(const char *value)
Definition: CreateAccessPreviewRequest.h:149
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::AddConfigurations
CreateAccessPreviewRequest & AddConfigurations(const Aws::String &key, Configuration &&value)
Definition: CreateAccessPreviewRequest.h:222
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::CreateAccessPreviewRequest
CreateAccessPreviewRequest()
Aws::AccessAnalyzer::Model::Configuration
Definition: Configuration.h:38
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::SetAnalyzerArn
void SetAnalyzerArn(const Aws::String &value)
Definition: CreateAccessPreviewRequest.h:63
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::SetConfigurations
void SetConfigurations(const Aws::Map< Aws::String, Configuration > &value)
Definition: CreateAccessPreviewRequest.h:174
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::SetAnalyzerArn
void SetAnalyzerArn(Aws::String &&value)
Definition: CreateAccessPreviewRequest.h:72
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::AddConfigurations
CreateAccessPreviewRequest & AddConfigurations(Aws::String &&key, Configuration &&value)
Definition: CreateAccessPreviewRequest.h:230
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::GetAnalyzerArn
const Aws::String & GetAnalyzerArn() const
Definition: CreateAccessPreviewRequest.h:45
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::SetConfigurations
void SetConfigurations(Aws::Map< Aws::String, Configuration > &&value)
Definition: CreateAccessPreviewRequest.h:182
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::GetConfigurations
const Aws::Map< Aws::String, Configuration > & GetConfigurations() const
Definition: CreateAccessPreviewRequest.h:158
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateAccessPreviewRequest.h:119
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::AddConfigurations
CreateAccessPreviewRequest & AddConfigurations(const Aws::String &key, const Configuration &value)
Definition: CreateAccessPreviewRequest.h:206
UUID.h
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::AccessAnalyzer::Model::CreateAccessPreviewRequest::WithClientToken
CreateAccessPreviewRequest & WithClientToken(const Aws::String &value)
Definition: CreateAccessPreviewRequest.h:139