AWS SDK for C++

AWS SDK for C++ Version 1.11.632

Loading...
Searching...
No Matches
CodeSnippetError.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/CodeSnippetErrorCode.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
46 inline const Aws::String& GetFindingArn() const { return m_findingArn; }
47 inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; }
48 template<typename FindingArnT = Aws::String>
49 void SetFindingArn(FindingArnT&& value) { m_findingArnHasBeenSet = true; m_findingArn = std::forward<FindingArnT>(value); }
50 template<typename FindingArnT = Aws::String>
51 CodeSnippetError& WithFindingArn(FindingArnT&& value) { SetFindingArn(std::forward<FindingArnT>(value)); return *this;}
53
55
59 inline CodeSnippetErrorCode GetErrorCode() const { return m_errorCode; }
60 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
61 inline void SetErrorCode(CodeSnippetErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
62 inline CodeSnippetError& WithErrorCode(CodeSnippetErrorCode value) { SetErrorCode(value); return *this;}
64
66
70 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
71 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
72 template<typename ErrorMessageT = Aws::String>
73 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
74 template<typename ErrorMessageT = Aws::String>
75 CodeSnippetError& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
77 private:
78
79 Aws::String m_findingArn;
80 bool m_findingArnHasBeenSet = false;
81
83 bool m_errorCodeHasBeenSet = false;
84
85 Aws::String m_errorMessage;
86 bool m_errorMessageHasBeenSet = 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