AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResultErrorEntry.h
1
6#pragma once
7#include <aws/cloudtrail-data/CloudTrailData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudTrailData
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDTRAILDATA_API ResultErrorEntry();
36 AWS_CLOUDTRAILDATA_API ResultErrorEntry(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDTRAILDATA_API ResultErrorEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDTRAILDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
50 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
51 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
52 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
53 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
54 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
55 inline ResultErrorEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
56 inline ResultErrorEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
57 inline ResultErrorEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
59
61
65 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
66 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
67 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
68 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
69 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
70 inline ResultErrorEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
71 inline ResultErrorEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
72 inline ResultErrorEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
74
76
80 inline const Aws::String& GetId() const{ return m_id; }
81 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
82 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
83 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
84 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
85 inline ResultErrorEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
86 inline ResultErrorEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
87 inline ResultErrorEntry& WithId(const char* value) { SetId(value); return *this;}
89 private:
90
91 Aws::String m_errorCode;
92 bool m_errorCodeHasBeenSet = false;
93
94 Aws::String m_errorMessage;
95 bool m_errorMessageHasBeenSet = false;
96
97 Aws::String m_id;
98 bool m_idHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace CloudTrailData
103} // namespace Aws
void SetErrorMessage(const char *value)
void SetErrorMessage(const Aws::String &value)
void SetId(const Aws::String &value)
void SetErrorCode(const Aws::String &value)
ResultErrorEntry & WithErrorCode(const char *value)
ResultErrorEntry & WithErrorMessage(const Aws::String &value)
void SetErrorMessage(Aws::String &&value)
bool ErrorCodeHasBeenSet() const
void SetErrorCode(Aws::String &&value)
ResultErrorEntry & WithErrorMessage(const char *value)
bool IdHasBeenSet() const
bool ErrorMessageHasBeenSet() const
const Aws::String & GetErrorMessage() const
void SetId(const char *value)
AWS_CLOUDTRAILDATA_API ResultErrorEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAILDATA_API Aws::Utils::Json::JsonValue Jsonize() const
ResultErrorEntry & WithId(const char *value)
ResultErrorEntry & WithId(const Aws::String &value)
ResultErrorEntry & WithId(Aws::String &&value)
void SetId(Aws::String &&value)
ResultErrorEntry & WithErrorMessage(Aws::String &&value)
ResultErrorEntry & WithErrorCode(Aws::String &&value)
AWS_CLOUDTRAILDATA_API ResultErrorEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDTRAILDATA_API ResultErrorEntry()
const Aws::String & GetId() const
const Aws::String & GetErrorCode() const
ResultErrorEntry & WithErrorCode(const Aws::String &value)
void SetErrorCode(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue