AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ResourceError.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppStream
24{
25namespace Model
26{
27
34 {
35 public:
40
41
45 inline const FleetErrorCode& GetErrorCode() const{ return m_errorCode; }
46
50 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
51
55 inline void SetErrorCode(const FleetErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
56
60 inline void SetErrorCode(FleetErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
61
65 inline ResourceError& WithErrorCode(const FleetErrorCode& value) { SetErrorCode(value); return *this;}
66
70 inline ResourceError& WithErrorCode(FleetErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
71
72
76 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
77
81 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
82
86 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
87
91 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
92
96 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
97
101 inline ResourceError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
102
106 inline ResourceError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
107
111 inline ResourceError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
112
113
117 inline const Aws::Utils::DateTime& GetErrorTimestamp() const{ return m_errorTimestamp; }
118
122 inline bool ErrorTimestampHasBeenSet() const { return m_errorTimestampHasBeenSet; }
123
127 inline void SetErrorTimestamp(const Aws::Utils::DateTime& value) { m_errorTimestampHasBeenSet = true; m_errorTimestamp = value; }
128
132 inline void SetErrorTimestamp(Aws::Utils::DateTime&& value) { m_errorTimestampHasBeenSet = true; m_errorTimestamp = std::move(value); }
133
137 inline ResourceError& WithErrorTimestamp(const Aws::Utils::DateTime& value) { SetErrorTimestamp(value); return *this;}
138
142 inline ResourceError& WithErrorTimestamp(Aws::Utils::DateTime&& value) { SetErrorTimestamp(std::move(value)); return *this;}
143
144 private:
145
146 FleetErrorCode m_errorCode;
147 bool m_errorCodeHasBeenSet = false;
148
149 Aws::String m_errorMessage;
150 bool m_errorMessageHasBeenSet = false;
151
152 Aws::Utils::DateTime m_errorTimestamp;
153 bool m_errorTimestampHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace AppStream
158} // namespace Aws
#define AWS_APPSTREAM_API
ResourceError & WithErrorCode(const FleetErrorCode &value)
Definition: ResourceError.h:65
AWS_APPSTREAM_API ResourceError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API ResourceError(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceError & WithErrorMessage(const Aws::String &value)
const FleetErrorCode & GetErrorCode() const
Definition: ResourceError.h:45
ResourceError & WithErrorMessage(Aws::String &&value)
void SetErrorTimestamp(Aws::Utils::DateTime &&value)
void SetErrorCode(FleetErrorCode &&value)
Definition: ResourceError.h:60
ResourceError & WithErrorTimestamp(Aws::Utils::DateTime &&value)
ResourceError & WithErrorCode(FleetErrorCode &&value)
Definition: ResourceError.h:70
ResourceError & WithErrorTimestamp(const Aws::Utils::DateTime &value)
void SetErrorMessage(const Aws::String &value)
Definition: ResourceError.h:86
void SetErrorMessage(const char *value)
Definition: ResourceError.h:96
void SetErrorCode(const FleetErrorCode &value)
Definition: ResourceError.h:55
const Aws::String & GetErrorMessage() const
Definition: ResourceError.h:76
void SetErrorTimestamp(const Aws::Utils::DateTime &value)
ResourceError & WithErrorMessage(const char *value)
void SetErrorMessage(Aws::String &&value)
Definition: ResourceError.h:91
const Aws::Utils::DateTime & GetErrorTimestamp() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String