AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchGetFindingsError.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/codeguru-security/model/ErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeGuruSecurity {
21namespace Model {
22
30 public:
31 AWS_CODEGURUSECURITY_API BatchGetFindingsError() = default;
32 AWS_CODEGURUSECURITY_API BatchGetFindingsError(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEGURUSECURITY_API BatchGetFindingsError& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetScanName() const { return m_scanName; }
41 inline bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; }
42 template <typename ScanNameT = Aws::String>
43 void SetScanName(ScanNameT&& value) {
44 m_scanNameHasBeenSet = true;
45 m_scanName = std::forward<ScanNameT>(value);
46 }
47 template <typename ScanNameT = Aws::String>
48 BatchGetFindingsError& WithScanName(ScanNameT&& value) {
49 SetScanName(std::forward<ScanNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetFindingId() const { return m_findingId; }
59 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
60 template <typename FindingIdT = Aws::String>
61 void SetFindingId(FindingIdT&& value) {
62 m_findingIdHasBeenSet = true;
63 m_findingId = std::forward<FindingIdT>(value);
64 }
65 template <typename FindingIdT = Aws::String>
66 BatchGetFindingsError& WithFindingId(FindingIdT&& value) {
67 SetFindingId(std::forward<FindingIdT>(value));
68 return *this;
69 }
71
73
76 inline ErrorCode GetErrorCode() const { return m_errorCode; }
77 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
78 inline void SetErrorCode(ErrorCode value) {
79 m_errorCodeHasBeenSet = true;
80 m_errorCode = value;
81 }
83 SetErrorCode(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetMessage() const { return m_message; }
93 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
94 template <typename MessageT = Aws::String>
95 void SetMessage(MessageT&& value) {
96 m_messageHasBeenSet = true;
97 m_message = std::forward<MessageT>(value);
98 }
99 template <typename MessageT = Aws::String>
101 SetMessage(std::forward<MessageT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_scanName;
107
108 Aws::String m_findingId;
109
110 ErrorCode m_errorCode{ErrorCode::NOT_SET};
111
112 Aws::String m_message;
113 bool m_scanNameHasBeenSet = false;
114 bool m_findingIdHasBeenSet = false;
115 bool m_errorCodeHasBeenSet = false;
116 bool m_messageHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace CodeGuruSecurity
121} // namespace Aws
BatchGetFindingsError & WithErrorCode(ErrorCode value)
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
BatchGetFindingsError & WithMessage(MessageT &&value)
AWS_CODEGURUSECURITY_API BatchGetFindingsError(Aws::Utils::Json::JsonView jsonValue)
BatchGetFindingsError & WithFindingId(FindingIdT &&value)
AWS_CODEGURUSECURITY_API BatchGetFindingsError()=default
AWS_CODEGURUSECURITY_API BatchGetFindingsError & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchGetFindingsError & WithScanName(ScanNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue