AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const CodeSnippetErrorCode& GetErrorCode() const{ return m_errorCode; }
48 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
49 inline void SetErrorCode(const CodeSnippetErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
50 inline void SetErrorCode(CodeSnippetErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
51 inline CodeSnippetError& WithErrorCode(const CodeSnippetErrorCode& value) { SetErrorCode(value); return *this;}
52 inline CodeSnippetError& WithErrorCode(CodeSnippetErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
54
56
60 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
61 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
62 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
63 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
64 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
65 inline CodeSnippetError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
66 inline CodeSnippetError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
67 inline CodeSnippetError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
69
71
74 inline const Aws::String& GetFindingArn() const{ return m_findingArn; }
75 inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; }
76 inline void SetFindingArn(const Aws::String& value) { m_findingArnHasBeenSet = true; m_findingArn = value; }
77 inline void SetFindingArn(Aws::String&& value) { m_findingArnHasBeenSet = true; m_findingArn = std::move(value); }
78 inline void SetFindingArn(const char* value) { m_findingArnHasBeenSet = true; m_findingArn.assign(value); }
79 inline CodeSnippetError& WithFindingArn(const Aws::String& value) { SetFindingArn(value); return *this;}
80 inline CodeSnippetError& WithFindingArn(Aws::String&& value) { SetFindingArn(std::move(value)); return *this;}
81 inline CodeSnippetError& WithFindingArn(const char* value) { SetFindingArn(value); return *this;}
83 private:
84
85 CodeSnippetErrorCode m_errorCode;
86 bool m_errorCodeHasBeenSet = false;
87
88 Aws::String m_errorMessage;
89 bool m_errorMessageHasBeenSet = false;
90
91 Aws::String m_findingArn;
92 bool m_findingArnHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Inspector2
97} // namespace Aws
CodeSnippetError & WithFindingArn(Aws::String &&value)
AWS_INSPECTOR2_API CodeSnippetError(Aws::Utils::Json::JsonView jsonValue)
CodeSnippetError & WithErrorCode(const CodeSnippetErrorCode &value)
void SetFindingArn(const Aws::String &value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorCode(const CodeSnippetErrorCode &value)
CodeSnippetError & WithErrorMessage(const Aws::String &value)
const CodeSnippetErrorCode & GetErrorCode() const
void SetErrorMessage(Aws::String &&value)
CodeSnippetError & WithFindingArn(const char *value)
const Aws::String & GetFindingArn() const
CodeSnippetError & WithErrorCode(CodeSnippetErrorCode &&value)
void SetErrorMessage(const Aws::String &value)
void SetErrorCode(CodeSnippetErrorCode &&value)
CodeSnippetError & WithErrorMessage(const char *value)
CodeSnippetError & WithErrorMessage(Aws::String &&value)
CodeSnippetError & WithFindingArn(const Aws::String &value)
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