AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MemberError.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
34 {
35 public:
36 AWS_CHIME_API MemberError();
37 AWS_CHIME_API MemberError(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetMemberId() const{ return m_memberId; }
47 inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
48 inline void SetMemberId(const Aws::String& value) { m_memberIdHasBeenSet = true; m_memberId = value; }
49 inline void SetMemberId(Aws::String&& value) { m_memberIdHasBeenSet = true; m_memberId = std::move(value); }
50 inline void SetMemberId(const char* value) { m_memberIdHasBeenSet = true; m_memberId.assign(value); }
51 inline MemberError& WithMemberId(const Aws::String& value) { SetMemberId(value); return *this;}
52 inline MemberError& WithMemberId(Aws::String&& value) { SetMemberId(std::move(value)); return *this;}
53 inline MemberError& WithMemberId(const char* value) { SetMemberId(value); return *this;}
55
57
60 inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
61 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
62 inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
63 inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
64 inline MemberError& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
65 inline MemberError& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
73 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
74 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
75 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
76 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
77 inline MemberError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
78 inline MemberError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
79 inline MemberError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
81 private:
82
83 Aws::String m_memberId;
84 bool m_memberIdHasBeenSet = false;
85
86 ErrorCode m_errorCode;
87 bool m_errorCodeHasBeenSet = false;
88
89 Aws::String m_errorMessage;
90 bool m_errorMessageHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Chime
95} // namespace Aws
void SetMemberId(const char *value)
Definition MemberError.h:50
void SetMemberId(Aws::String &&value)
Definition MemberError.h:49
MemberError & WithMemberId(const Aws::String &value)
Definition MemberError.h:51
void SetMemberId(const Aws::String &value)
Definition MemberError.h:48
void SetErrorMessage(Aws::String &&value)
Definition MemberError.h:75
const Aws::String & GetMemberId() const
Definition MemberError.h:46
const ErrorCode & GetErrorCode() const
Definition MemberError.h:60
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
MemberError & WithMemberId(Aws::String &&value)
Definition MemberError.h:52
AWS_CHIME_API MemberError(Aws::Utils::Json::JsonView jsonValue)
MemberError & WithErrorCode(const ErrorCode &value)
Definition MemberError.h:64
void SetErrorCode(ErrorCode &&value)
Definition MemberError.h:63
void SetErrorMessage(const char *value)
Definition MemberError.h:76
AWS_CHIME_API MemberError & operator=(Aws::Utils::Json::JsonView jsonValue)
MemberError & WithErrorMessage(const Aws::String &value)
Definition MemberError.h:77
MemberError & WithErrorMessage(Aws::String &&value)
Definition MemberError.h:78
const Aws::String & GetErrorMessage() const
Definition MemberError.h:72
MemberError & WithMemberId(const char *value)
Definition MemberError.h:53
void SetErrorMessage(const Aws::String &value)
Definition MemberError.h:74
MemberError & WithErrorMessage(const char *value)
Definition MemberError.h:79
MemberError & WithErrorCode(ErrorCode &&value)
Definition MemberError.h:65
void SetErrorCode(const ErrorCode &value)
Definition MemberError.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue