AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserError.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/chime/model/ErrorCode.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 Chime
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_CHIME_API UserError();
39 AWS_CHIME_API UserError(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetUserId() const{ return m_userId; }
49 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
50 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
51 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
52 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
53 inline UserError& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
54 inline UserError& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
55 inline UserError& WithUserId(const char* value) { SetUserId(value); return *this;}
57
59
62 inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
63 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
64 inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
65 inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
66 inline UserError& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
67 inline UserError& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
75 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
76 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
77 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
78 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
79 inline UserError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
80 inline UserError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
81 inline UserError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
83 private:
84
85 Aws::String m_userId;
86 bool m_userIdHasBeenSet = false;
87
88 ErrorCode m_errorCode;
89 bool m_errorCodeHasBeenSet = false;
90
91 Aws::String m_errorMessage;
92 bool m_errorMessageHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Chime
97} // namespace Aws
UserError & WithErrorCode(const ErrorCode &value)
Definition UserError.h:66
AWS_CHIME_API UserError & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorMessage(const char *value)
Definition UserError.h:78
void SetUserId(Aws::String &&value)
Definition UserError.h:51
UserError & WithUserId(const Aws::String &value)
Definition UserError.h:53
bool ErrorCodeHasBeenSet() const
Definition UserError.h:63
void SetErrorMessage(const Aws::String &value)
Definition UserError.h:76
void SetErrorCode(ErrorCode &&value)
Definition UserError.h:65
UserError & WithErrorMessage(Aws::String &&value)
Definition UserError.h:80
UserError & WithErrorMessage(const Aws::String &value)
Definition UserError.h:79
UserError & WithUserId(Aws::String &&value)
Definition UserError.h:54
bool UserIdHasBeenSet() const
Definition UserError.h:49
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorCode(const ErrorCode &value)
Definition UserError.h:64
const Aws::String & GetErrorMessage() const
Definition UserError.h:74
const Aws::String & GetUserId() const
Definition UserError.h:48
UserError & WithErrorMessage(const char *value)
Definition UserError.h:81
UserError & WithUserId(const char *value)
Definition UserError.h:55
UserError & WithErrorCode(ErrorCode &&value)
Definition UserError.h:67
bool ErrorMessageHasBeenSet() const
Definition UserError.h:75
const ErrorCode & GetErrorCode() const
Definition UserError.h:62
void SetErrorMessage(Aws::String &&value)
Definition UserError.h:77
AWS_CHIME_API UserError(Aws::Utils::Json::JsonView jsonValue)
void SetUserId(const char *value)
Definition UserError.h:52
void SetUserId(const Aws::String &value)
Definition UserError.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue