AWS SDK for C++  1.9.2
AWS SDK for C++
StartResourceScanRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace AccessAnalyzer
15 {
16 namespace Model
17 {
18 
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 "StartResourceScan"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
45  inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; }
46 
53  inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
54 
61  inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
62 
69  inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
70 
77  inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
78 
85  inline StartResourceScanRequest& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
86 
93  inline StartResourceScanRequest& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
94 
101  inline StartResourceScanRequest& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
102 
103 
107  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
108 
112  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
113 
117  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
118 
122  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
123 
127  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
128 
132  inline StartResourceScanRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
133 
137  inline StartResourceScanRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
138 
142  inline StartResourceScanRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
143 
144  private:
145 
146  Aws::String m_analyzerArn;
147  bool m_analyzerArnHasBeenSet;
148 
149  Aws::String m_resourceArn;
150  bool m_resourceArnHasBeenSet;
151  };
152 
153 } // namespace Model
154 } // namespace AccessAnalyzer
155 } // namespace Aws
Aws::AccessAnalyzer::Model::StartResourceScanRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: StartResourceScanRequest.h:107
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::StartResourceScanRequest::WithAnalyzerArn
StartResourceScanRequest & WithAnalyzerArn(Aws::String &&value)
Definition: StartResourceScanRequest.h:93
Aws::AccessAnalyzer::Model::StartResourceScanRequest::WithResourceArn
StartResourceScanRequest & WithResourceArn(const char *value)
Definition: StartResourceScanRequest.h:142
Aws::AccessAnalyzer::Model::StartResourceScanRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: StartResourceScanRequest.h:122
Aws::AccessAnalyzer::AccessAnalyzerRequest
Definition: AccessAnalyzerRequest.h:17
Aws::AccessAnalyzer::Model::StartResourceScanRequest
Definition: StartResourceScanRequest.h:26
Aws::AccessAnalyzer::Model::StartResourceScanRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: StartResourceScanRequest.h:127
Aws::AccessAnalyzer::Model::StartResourceScanRequest::WithAnalyzerArn
StartResourceScanRequest & WithAnalyzerArn(const char *value)
Definition: StartResourceScanRequest.h:101
Aws::AccessAnalyzer::Model::StartResourceScanRequest::AnalyzerArnHasBeenSet
bool AnalyzerArnHasBeenSet() const
Definition: StartResourceScanRequest.h:53
Aws::AccessAnalyzer::Model::StartResourceScanRequest::SetAnalyzerArn
void SetAnalyzerArn(Aws::String &&value)
Definition: StartResourceScanRequest.h:69
AccessAnalyzerRequest.h
Aws::AccessAnalyzer::Model::StartResourceScanRequest::WithResourceArn
StartResourceScanRequest & WithResourceArn(const Aws::String &value)
Definition: StartResourceScanRequest.h:132
Aws::AccessAnalyzer::Model::StartResourceScanRequest::WithResourceArn
StartResourceScanRequest & WithResourceArn(Aws::String &&value)
Definition: StartResourceScanRequest.h:137
Aws::AccessAnalyzer::Model::StartResourceScanRequest::WithAnalyzerArn
StartResourceScanRequest & WithAnalyzerArn(const Aws::String &value)
Definition: StartResourceScanRequest.h:85
Aws::AccessAnalyzer::Model::StartResourceScanRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartResourceScanRequest.h:34
AWSString.h
Aws::AccessAnalyzer::Model::StartResourceScanRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: StartResourceScanRequest.h:117
Aws::AccessAnalyzer::Model::StartResourceScanRequest::SetAnalyzerArn
void SetAnalyzerArn(const Aws::String &value)
Definition: StartResourceScanRequest.h:61
Aws::AccessAnalyzer::Model::StartResourceScanRequest::StartResourceScanRequest
StartResourceScanRequest()
Aws::AccessAnalyzer::Model::StartResourceScanRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AccessAnalyzer::Model::StartResourceScanRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: StartResourceScanRequest.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::StartResourceScanRequest::GetAnalyzerArn
const Aws::String & GetAnalyzerArn() const
Definition: StartResourceScanRequest.h:45
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::StartResourceScanRequest::SetAnalyzerArn
void SetAnalyzerArn(const char *value)
Definition: StartResourceScanRequest.h:77
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97