AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeGuruSecurity
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEGURUSECURITY_API BatchGetFindingsError() = default;
37 AWS_CODEGURUSECURITY_API BatchGetFindingsError(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEGURUSECURITY_API BatchGetFindingsError& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline ErrorCode GetErrorCode() const { return m_errorCode; }
47 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
48 inline void SetErrorCode(ErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
49 inline BatchGetFindingsError& WithErrorCode(ErrorCode value) { SetErrorCode(value); return *this;}
51
53
56 inline const Aws::String& GetFindingId() const { return m_findingId; }
57 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
58 template<typename FindingIdT = Aws::String>
59 void SetFindingId(FindingIdT&& value) { m_findingIdHasBeenSet = true; m_findingId = std::forward<FindingIdT>(value); }
60 template<typename FindingIdT = Aws::String>
61 BatchGetFindingsError& WithFindingId(FindingIdT&& value) { SetFindingId(std::forward<FindingIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetMessage() const { return m_message; }
69 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
70 template<typename MessageT = Aws::String>
71 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
72 template<typename MessageT = Aws::String>
73 BatchGetFindingsError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
75
77
80 inline const Aws::String& GetScanName() const { return m_scanName; }
81 inline bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; }
82 template<typename ScanNameT = Aws::String>
83 void SetScanName(ScanNameT&& value) { m_scanNameHasBeenSet = true; m_scanName = std::forward<ScanNameT>(value); }
84 template<typename ScanNameT = Aws::String>
85 BatchGetFindingsError& WithScanName(ScanNameT&& value) { SetScanName(std::forward<ScanNameT>(value)); return *this;}
87 private:
88
89 ErrorCode m_errorCode{ErrorCode::NOT_SET};
90 bool m_errorCodeHasBeenSet = false;
91
92 Aws::String m_findingId;
93 bool m_findingIdHasBeenSet = false;
94
95 Aws::String m_message;
96 bool m_messageHasBeenSet = false;
97
98 Aws::String m_scanName;
99 bool m_scanNameHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CodeGuruSecurity
104} // 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