AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CodeSnippetError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/CodeSnippetErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector2 {
21namespace Model {
22
30 public:
31 AWS_INSPECTOR2_API CodeSnippetError() = default;
32 AWS_INSPECTOR2_API CodeSnippetError(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetFindingArn() const { return m_findingArn; }
41 inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; }
42 template <typename FindingArnT = Aws::String>
43 void SetFindingArn(FindingArnT&& value) {
44 m_findingArnHasBeenSet = true;
45 m_findingArn = std::forward<FindingArnT>(value);
46 }
47 template <typename FindingArnT = Aws::String>
48 CodeSnippetError& WithFindingArn(FindingArnT&& value) {
49 SetFindingArn(std::forward<FindingArnT>(value));
50 return *this;
51 }
53
55
59 inline CodeSnippetErrorCode GetErrorCode() const { return m_errorCode; }
60 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
62 m_errorCodeHasBeenSet = true;
63 m_errorCode = value;
64 }
66 SetErrorCode(value);
67 return *this;
68 }
70
72
76 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
77 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
78 template <typename ErrorMessageT = Aws::String>
79 void SetErrorMessage(ErrorMessageT&& value) {
80 m_errorMessageHasBeenSet = true;
81 m_errorMessage = std::forward<ErrorMessageT>(value);
82 }
83 template <typename ErrorMessageT = Aws::String>
84 CodeSnippetError& WithErrorMessage(ErrorMessageT&& value) {
85 SetErrorMessage(std::forward<ErrorMessageT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_findingArn;
91
93
94 Aws::String m_errorMessage;
95 bool m_findingArnHasBeenSet = false;
96 bool m_errorCodeHasBeenSet = false;
97 bool m_errorMessageHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Inspector2
102} // namespace Aws
void SetErrorMessage(ErrorMessageT &&value)
AWS_INSPECTOR2_API CodeSnippetError(Aws::Utils::Json::JsonView jsonValue)
CodeSnippetError & WithErrorMessage(ErrorMessageT &&value)
CodeSnippetError & WithErrorCode(CodeSnippetErrorCode value)
CodeSnippetError & WithFindingArn(FindingArnT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorCode(CodeSnippetErrorCode value)
const Aws::String & GetFindingArn() const
AWS_INSPECTOR2_API CodeSnippetError()=default
CodeSnippetErrorCode GetErrorCode() const
AWS_INSPECTOR2_API CodeSnippetError & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetErrorMessage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue