AWS SDK for C++  1.9.153
AWS SDK for C++
GetAccessPreviewRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace AccessAnalyzer
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetAccessPreview"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetAccessPreviewId() const{ return m_accessPreviewId; }
45 
49  inline bool AccessPreviewIdHasBeenSet() const { return m_accessPreviewIdHasBeenSet; }
50 
54  inline void SetAccessPreviewId(const Aws::String& value) { m_accessPreviewIdHasBeenSet = true; m_accessPreviewId = value; }
55 
59  inline void SetAccessPreviewId(Aws::String&& value) { m_accessPreviewIdHasBeenSet = true; m_accessPreviewId = std::move(value); }
60 
64  inline void SetAccessPreviewId(const char* value) { m_accessPreviewIdHasBeenSet = true; m_accessPreviewId.assign(value); }
65 
69  inline GetAccessPreviewRequest& WithAccessPreviewId(const Aws::String& value) { SetAccessPreviewId(value); return *this;}
70 
74  inline GetAccessPreviewRequest& WithAccessPreviewId(Aws::String&& value) { SetAccessPreviewId(std::move(value)); return *this;}
75 
79  inline GetAccessPreviewRequest& WithAccessPreviewId(const char* value) { SetAccessPreviewId(value); return *this;}
80 
81 
87  inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; }
88 
94  inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
95 
101  inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
102 
108  inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
109 
115  inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
116 
122  inline GetAccessPreviewRequest& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
123 
129  inline GetAccessPreviewRequest& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
130 
136  inline GetAccessPreviewRequest& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
137 
138  private:
139 
140  Aws::String m_accessPreviewId;
141  bool m_accessPreviewIdHasBeenSet;
142 
143  Aws::String m_analyzerArn;
144  bool m_analyzerArnHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace AccessAnalyzer
149 } // namespace Aws
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::SetAccessPreviewId
void SetAccessPreviewId(const char *value)
Definition: GetAccessPreviewRequest.h:64
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::GetAccessPreviewRequest
GetAccessPreviewRequest()
AccessAnalyzer_EXPORTS.h
Aws::Http::URI
Definition: URI.h:32
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::WithAnalyzerArn
GetAccessPreviewRequest & WithAnalyzerArn(Aws::String &&value)
Definition: GetAccessPreviewRequest.h:129
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::WithAccessPreviewId
GetAccessPreviewRequest & WithAccessPreviewId(const Aws::String &value)
Definition: GetAccessPreviewRequest.h:69
Aws::AccessAnalyzer::AccessAnalyzerRequest
Definition: AccessAnalyzerRequest.h:17
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::SetAnalyzerArn
void SetAnalyzerArn(const char *value)
Definition: GetAccessPreviewRequest.h:115
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::WithAccessPreviewId
GetAccessPreviewRequest & WithAccessPreviewId(const char *value)
Definition: GetAccessPreviewRequest.h:79
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::SetAnalyzerArn
void SetAnalyzerArn(Aws::String &&value)
Definition: GetAccessPreviewRequest.h:108
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::SetAnalyzerArn
void SetAnalyzerArn(const Aws::String &value)
Definition: GetAccessPreviewRequest.h:101
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::GetAccessPreviewId
const Aws::String & GetAccessPreviewId() const
Definition: GetAccessPreviewRequest.h:44
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest
Definition: GetAccessPreviewRequest.h:26
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::AccessPreviewIdHasBeenSet
bool AccessPreviewIdHasBeenSet() const
Definition: GetAccessPreviewRequest.h:49
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetAccessPreviewRequest.h:34
AccessAnalyzerRequest.h
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::WithAnalyzerArn
GetAccessPreviewRequest & WithAnalyzerArn(const Aws::String &value)
Definition: GetAccessPreviewRequest.h:122
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::SetAccessPreviewId
void SetAccessPreviewId(const Aws::String &value)
Definition: GetAccessPreviewRequest.h:54
AWSString.h
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::WithAccessPreviewId
GetAccessPreviewRequest & WithAccessPreviewId(Aws::String &&value)
Definition: GetAccessPreviewRequest.h:74
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::SetAccessPreviewId
void SetAccessPreviewId(Aws::String &&value)
Definition: GetAccessPreviewRequest.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::AnalyzerArnHasBeenSet
bool AnalyzerArnHasBeenSet() const
Definition: GetAccessPreviewRequest.h:94
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::WithAnalyzerArn
GetAccessPreviewRequest & WithAnalyzerArn(const char *value)
Definition: GetAccessPreviewRequest.h:136
Aws::AccessAnalyzer::Model::GetAccessPreviewRequest::GetAnalyzerArn
const Aws::String & GetAnalyzerArn() const
Definition: GetAccessPreviewRequest.h:87