AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FleetError.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppStream
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APPSTREAM_API FleetError();
36 AWS_APPSTREAM_API FleetError(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPSTREAM_API FleetError& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const FleetErrorCode& GetErrorCode() const{ return m_errorCode; }
46 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
47 inline void SetErrorCode(const FleetErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
48 inline void SetErrorCode(FleetErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
49 inline FleetError& WithErrorCode(const FleetErrorCode& value) { SetErrorCode(value); return *this;}
50 inline FleetError& WithErrorCode(FleetErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
58 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
59 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
60 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
61 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
62 inline FleetError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
63 inline FleetError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
64 inline FleetError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
66 private:
67
68 FleetErrorCode m_errorCode;
69 bool m_errorCodeHasBeenSet = false;
70
71 Aws::String m_errorMessage;
72 bool m_errorMessageHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace AppStream
77} // namespace Aws
FleetError & WithErrorCode(FleetErrorCode &&value)
Definition FleetError.h:50
void SetErrorMessage(const Aws::String &value)
Definition FleetError.h:59
AWS_APPSTREAM_API FleetError(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPSTREAM_API FleetError & operator=(Aws::Utils::Json::JsonView jsonValue)
const FleetErrorCode & GetErrorCode() const
Definition FleetError.h:45
FleetError & WithErrorCode(const FleetErrorCode &value)
Definition FleetError.h:49
FleetError & WithErrorMessage(const Aws::String &value)
Definition FleetError.h:62
void SetErrorCode(FleetErrorCode &&value)
Definition FleetError.h:48
void SetErrorMessage(const char *value)
Definition FleetError.h:61
FleetError & WithErrorMessage(Aws::String &&value)
Definition FleetError.h:63
AWS_APPSTREAM_API FleetError()
FleetError & WithErrorMessage(const char *value)
Definition FleetError.h:64
const Aws::String & GetErrorMessage() const
Definition FleetError.h:57
void SetErrorMessage(Aws::String &&value)
Definition FleetError.h:60
void SetErrorCode(const FleetErrorCode &value)
Definition FleetError.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue