AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
StartResourceScanRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
8#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace AccessAnalyzer {
15namespace Model {
16
24 public:
25 AWS_ACCESSANALYZER_API StartResourceScanRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartResourceScan"; }
32
33 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
34
36
42 inline const Aws::String& GetAnalyzerArn() const { return m_analyzerArn; }
43 inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
44 template <typename AnalyzerArnT = Aws::String>
45 void SetAnalyzerArn(AnalyzerArnT&& value) {
46 m_analyzerArnHasBeenSet = true;
47 m_analyzerArn = std::forward<AnalyzerArnT>(value);
48 }
49 template <typename AnalyzerArnT = Aws::String>
51 SetAnalyzerArn(std::forward<AnalyzerArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
61 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
62 template <typename ResourceArnT = Aws::String>
63 void SetResourceArn(ResourceArnT&& value) {
64 m_resourceArnHasBeenSet = true;
65 m_resourceArn = std::forward<ResourceArnT>(value);
66 }
67 template <typename ResourceArnT = Aws::String>
69 SetResourceArn(std::forward<ResourceArnT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetResourceOwnerAccount() const { return m_resourceOwnerAccount; }
81 inline bool ResourceOwnerAccountHasBeenSet() const { return m_resourceOwnerAccountHasBeenSet; }
82 template <typename ResourceOwnerAccountT = Aws::String>
83 void SetResourceOwnerAccount(ResourceOwnerAccountT&& value) {
84 m_resourceOwnerAccountHasBeenSet = true;
85 m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value);
86 }
87 template <typename ResourceOwnerAccountT = Aws::String>
88 StartResourceScanRequest& WithResourceOwnerAccount(ResourceOwnerAccountT&& value) {
89 SetResourceOwnerAccount(std::forward<ResourceOwnerAccountT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_analyzerArn;
95 bool m_analyzerArnHasBeenSet = false;
96
97 Aws::String m_resourceArn;
98 bool m_resourceArnHasBeenSet = false;
99
100 Aws::String m_resourceOwnerAccount;
101 bool m_resourceOwnerAccountHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace AccessAnalyzer
106} // 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