AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FindingDetailsError.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/FindingDetailsErrorCode.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 FindingDetailsError();
37 AWS_INSPECTOR2_API FindingDetailsError(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const FindingDetailsErrorCode& GetErrorCode() const{ return m_errorCode; }
47 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
48 inline void SetErrorCode(const FindingDetailsErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
49 inline void SetErrorCode(FindingDetailsErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
50 inline FindingDetailsError& WithErrorCode(const FindingDetailsErrorCode& value) { SetErrorCode(value); return *this;}
51 inline FindingDetailsError& WithErrorCode(FindingDetailsErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
59 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
60 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
61 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
62 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
63 inline FindingDetailsError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
64 inline FindingDetailsError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
65 inline FindingDetailsError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
67
69
72 inline const Aws::String& GetFindingArn() const{ return m_findingArn; }
73 inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; }
74 inline void SetFindingArn(const Aws::String& value) { m_findingArnHasBeenSet = true; m_findingArn = value; }
75 inline void SetFindingArn(Aws::String&& value) { m_findingArnHasBeenSet = true; m_findingArn = std::move(value); }
76 inline void SetFindingArn(const char* value) { m_findingArnHasBeenSet = true; m_findingArn.assign(value); }
77 inline FindingDetailsError& WithFindingArn(const Aws::String& value) { SetFindingArn(value); return *this;}
78 inline FindingDetailsError& WithFindingArn(Aws::String&& value) { SetFindingArn(std::move(value)); return *this;}
79 inline FindingDetailsError& WithFindingArn(const char* value) { SetFindingArn(value); return *this;}
81 private:
82
83 FindingDetailsErrorCode m_errorCode;
84 bool m_errorCodeHasBeenSet = false;
85
86 Aws::String m_errorMessage;
87 bool m_errorMessageHasBeenSet = false;
88
89 Aws::String m_findingArn;
90 bool m_findingArnHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Inspector2
95} // namespace Aws
void SetErrorCode(const FindingDetailsErrorCode &value)
AWS_INSPECTOR2_API FindingDetailsError & operator=(Aws::Utils::Json::JsonView jsonValue)
FindingDetailsError & WithErrorCode(FindingDetailsErrorCode &&value)
FindingDetailsError & WithErrorMessage(const Aws::String &value)
FindingDetailsError & WithFindingArn(const char *value)
FindingDetailsError & WithErrorCode(const FindingDetailsErrorCode &value)
FindingDetailsError & WithFindingArn(Aws::String &&value)
void SetErrorCode(FindingDetailsErrorCode &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API FindingDetailsError(Aws::Utils::Json::JsonView jsonValue)
void SetFindingArn(const Aws::String &value)
FindingDetailsError & WithErrorMessage(const char *value)
FindingDetailsError & WithFindingArn(const Aws::String &value)
FindingDetailsError & WithErrorMessage(Aws::String &&value)
const FindingDetailsErrorCode & GetErrorCode() const
void SetErrorMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue