AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CodeSnippetError.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/CodeSnippetErrorCode.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 Inspector2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_INSPECTOR2_API CodeSnippetError() = default;
37 AWS_INSPECTOR2_API CodeSnippetError(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline CodeSnippetErrorCode GetErrorCode() const { return m_errorCode; }
48 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
49 inline void SetErrorCode(CodeSnippetErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
50 inline CodeSnippetError& WithErrorCode(CodeSnippetErrorCode value) { SetErrorCode(value); return *this;}
52
54
58 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
59 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
60 template<typename ErrorMessageT = Aws::String>
61 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
62 template<typename ErrorMessageT = Aws::String>
63 CodeSnippetError& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
65
67
70 inline const Aws::String& GetFindingArn() const { return m_findingArn; }
71 inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; }
72 template<typename FindingArnT = Aws::String>
73 void SetFindingArn(FindingArnT&& value) { m_findingArnHasBeenSet = true; m_findingArn = std::forward<FindingArnT>(value); }
74 template<typename FindingArnT = Aws::String>
75 CodeSnippetError& WithFindingArn(FindingArnT&& value) { SetFindingArn(std::forward<FindingArnT>(value)); return *this;}
77 private:
78
80 bool m_errorCodeHasBeenSet = false;
81
82 Aws::String m_errorMessage;
83 bool m_errorMessageHasBeenSet = false;
84
85 Aws::String m_findingArn;
86 bool m_findingArnHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Inspector2
91} // 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