AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreateScanResult.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/codeguru-security/model/ResourceId.h>
9#include <aws/codeguru-security/model/ScanState.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CodeGuruSecurity {
25namespace Model {
27 public:
28 AWS_CODEGURUSECURITY_API CreateScanResult() = default;
31
33
36 inline const Aws::String& GetScanName() const { return m_scanName; }
37 template <typename ScanNameT = Aws::String>
38 void SetScanName(ScanNameT&& value) {
39 m_scanNameHasBeenSet = true;
40 m_scanName = std::forward<ScanNameT>(value);
41 }
42 template <typename ScanNameT = Aws::String>
43 CreateScanResult& WithScanName(ScanNameT&& value) {
44 SetScanName(std::forward<ScanNameT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetRunId() const { return m_runId; }
54 template <typename RunIdT = Aws::String>
55 void SetRunId(RunIdT&& value) {
56 m_runIdHasBeenSet = true;
57 m_runId = std::forward<RunIdT>(value);
58 }
59 template <typename RunIdT = Aws::String>
60 CreateScanResult& WithRunId(RunIdT&& value) {
61 SetRunId(std::forward<RunIdT>(value));
62 return *this;
63 }
65
67
71 inline const ResourceId& GetResourceId() const { return m_resourceId; }
72 template <typename ResourceIdT = ResourceId>
73 void SetResourceId(ResourceIdT&& value) {
74 m_resourceIdHasBeenSet = true;
75 m_resourceId = std::forward<ResourceIdT>(value);
76 }
77 template <typename ResourceIdT = ResourceId>
78 CreateScanResult& WithResourceId(ResourceIdT&& value) {
79 SetResourceId(std::forward<ResourceIdT>(value));
80 return *this;
81 }
83
85
89 inline ScanState GetScanState() const { return m_scanState; }
90 inline void SetScanState(ScanState value) {
91 m_scanStateHasBeenSet = true;
92 m_scanState = value;
93 }
95 SetScanState(value);
96 return *this;
97 }
99
101
104 inline const Aws::String& GetScanNameArn() const { return m_scanNameArn; }
105 template <typename ScanNameArnT = Aws::String>
106 void SetScanNameArn(ScanNameArnT&& value) {
107 m_scanNameArnHasBeenSet = true;
108 m_scanNameArn = std::forward<ScanNameArnT>(value);
109 }
110 template <typename ScanNameArnT = Aws::String>
111 CreateScanResult& WithScanNameArn(ScanNameArnT&& value) {
112 SetScanNameArn(std::forward<ScanNameArnT>(value));
113 return *this;
114 }
116
118
119 inline const Aws::String& GetRequestId() const { return m_requestId; }
120 template <typename RequestIdT = Aws::String>
121 void SetRequestId(RequestIdT&& value) {
122 m_requestIdHasBeenSet = true;
123 m_requestId = std::forward<RequestIdT>(value);
124 }
125 template <typename RequestIdT = Aws::String>
126 CreateScanResult& WithRequestId(RequestIdT&& value) {
127 SetRequestId(std::forward<RequestIdT>(value));
128 return *this;
129 }
131 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
132
133 private:
134 Aws::String m_scanName;
135
136 Aws::String m_runId;
137
138 ResourceId m_resourceId;
139
140 ScanState m_scanState{ScanState::NOT_SET};
141
142 Aws::String m_scanNameArn;
143
144 Aws::String m_requestId;
145 Aws::Http::HttpResponseCode m_HttpResponseCode;
146 bool m_scanNameHasBeenSet = false;
147 bool m_runIdHasBeenSet = false;
148 bool m_resourceIdHasBeenSet = false;
149 bool m_scanStateHasBeenSet = false;
150 bool m_scanNameArnHasBeenSet = false;
151 bool m_requestIdHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace CodeGuruSecurity
156} // namespace Aws
CreateScanResult & WithScanName(ScanNameT &&value)
AWS_CODEGURUSECURITY_API CreateScanResult()=default
CreateScanResult & WithResourceId(ResourceIdT &&value)
CreateScanResult & WithScanNameArn(ScanNameArnT &&value)
CreateScanResult & WithScanState(ScanState value)
AWS_CODEGURUSECURITY_API CreateScanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODEGURUSECURITY_API CreateScanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateScanResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateScanResult & WithRunId(RunIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue