AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartResourceScanRequest.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 <utility>
11
12namespace Aws
13{
14namespace AccessAnalyzer
15{
16namespace Model
17{
18
26 {
27 public:
28 AWS_ACCESSANALYZER_API StartResourceScanRequest() = default;
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_ACCESSANALYZER_API Aws::String SerializePayload() const override;
37
38
40
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 StartResourceScanRequest& WithAnalyzerArn(AnalyzerArnT&& value) { SetAnalyzerArn(std::forward<AnalyzerArnT>(value)); return *this;}
53
55
58 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
59 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
60 template<typename ResourceArnT = Aws::String>
61 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
62 template<typename ResourceArnT = Aws::String>
63 StartResourceScanRequest& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
65
67
72 inline const Aws::String& GetResourceOwnerAccount() const { return m_resourceOwnerAccount; }
73 inline bool ResourceOwnerAccountHasBeenSet() const { return m_resourceOwnerAccountHasBeenSet; }
74 template<typename ResourceOwnerAccountT = Aws::String>
75 void SetResourceOwnerAccount(ResourceOwnerAccountT&& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value); }
76 template<typename ResourceOwnerAccountT = Aws::String>
77 StartResourceScanRequest& WithResourceOwnerAccount(ResourceOwnerAccountT&& value) { SetResourceOwnerAccount(std::forward<ResourceOwnerAccountT>(value)); return *this;}
79 private:
80
81 Aws::String m_analyzerArn;
82 bool m_analyzerArnHasBeenSet = false;
83
84 Aws::String m_resourceArn;
85 bool m_resourceArnHasBeenSet = false;
86
87 Aws::String m_resourceOwnerAccount;
88 bool m_resourceOwnerAccountHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace AccessAnalyzer
93} // namespace Aws
AWS_ACCESSANALYZER_API StartResourceScanRequest()=default
virtual const char * GetServiceRequestName() const override
StartResourceScanRequest & WithResourceArn(ResourceArnT &&value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
StartResourceScanRequest & WithResourceOwnerAccount(ResourceOwnerAccountT &&value)
StartResourceScanRequest & WithAnalyzerArn(AnalyzerArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String