AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceError.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/FleetErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
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:
36 AWS_APPSTREAM_API ResourceError();
37 AWS_APPSTREAM_API ResourceError(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPSTREAM_API ResourceError& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const FleetErrorCode& GetErrorCode() const{ return m_errorCode; }
47 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
48 inline void SetErrorCode(const FleetErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
49 inline void SetErrorCode(FleetErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
50 inline ResourceError& WithErrorCode(const FleetErrorCode& value) { SetErrorCode(value); return *this;}
51 inline ResourceError& WithErrorCode(FleetErrorCode&& 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 ResourceError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
64 inline ResourceError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
65 inline ResourceError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetErrorTimestamp() const{ return m_errorTimestamp; }
73 inline bool ErrorTimestampHasBeenSet() const { return m_errorTimestampHasBeenSet; }
74 inline void SetErrorTimestamp(const Aws::Utils::DateTime& value) { m_errorTimestampHasBeenSet = true; m_errorTimestamp = value; }
75 inline void SetErrorTimestamp(Aws::Utils::DateTime&& value) { m_errorTimestampHasBeenSet = true; m_errorTimestamp = std::move(value); }
76 inline ResourceError& WithErrorTimestamp(const Aws::Utils::DateTime& value) { SetErrorTimestamp(value); return *this;}
77 inline ResourceError& WithErrorTimestamp(Aws::Utils::DateTime&& value) { SetErrorTimestamp(std::move(value)); return *this;}
79 private:
80
81 FleetErrorCode m_errorCode;
82 bool m_errorCodeHasBeenSet = false;
83
84 Aws::String m_errorMessage;
85 bool m_errorMessageHasBeenSet = false;
86
87 Aws::Utils::DateTime m_errorTimestamp;
88 bool m_errorTimestampHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace AppStream
93} // namespace Aws
ResourceError & WithErrorCode(const FleetErrorCode &value)
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
ResourceError & WithErrorMessage(Aws::String &&value)
void SetErrorTimestamp(Aws::Utils::DateTime &&value)
void SetErrorCode(FleetErrorCode &&value)
ResourceError & WithErrorTimestamp(Aws::Utils::DateTime &&value)
ResourceError & WithErrorCode(FleetErrorCode &&value)
ResourceError & WithErrorTimestamp(const Aws::Utils::DateTime &value)
void SetErrorMessage(const Aws::String &value)
void SetErrorMessage(const char *value)
void SetErrorCode(const FleetErrorCode &value)
const Aws::String & GetErrorMessage() const
void SetErrorTimestamp(const Aws::Utils::DateTime &value)
ResourceError & WithErrorMessage(const char *value)
void SetErrorMessage(Aws::String &&value)
const Aws::Utils::DateTime & GetErrorTimestamp() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue