AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PhoneNumberError.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
35 {
36 public:
37 AWS_CHIME_API PhoneNumberError();
40 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetPhoneNumberId() const{ return m_phoneNumberId; }
48 inline bool PhoneNumberIdHasBeenSet() const { return m_phoneNumberIdHasBeenSet; }
49 inline void SetPhoneNumberId(const Aws::String& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = value; }
50 inline void SetPhoneNumberId(Aws::String&& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = std::move(value); }
51 inline void SetPhoneNumberId(const char* value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId.assign(value); }
52 inline PhoneNumberError& WithPhoneNumberId(const Aws::String& value) { SetPhoneNumberId(value); return *this;}
53 inline PhoneNumberError& WithPhoneNumberId(Aws::String&& value) { SetPhoneNumberId(std::move(value)); return *this;}
54 inline PhoneNumberError& WithPhoneNumberId(const char* value) { SetPhoneNumberId(value); return *this;}
56
58
61 inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
62 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
63 inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
64 inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
65 inline PhoneNumberError& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
66 inline PhoneNumberError& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
74 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
75 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
76 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
77 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
78 inline PhoneNumberError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
79 inline PhoneNumberError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
80 inline PhoneNumberError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
82 private:
83
84 Aws::String m_phoneNumberId;
85 bool m_phoneNumberIdHasBeenSet = false;
86
87 ErrorCode m_errorCode;
88 bool m_errorCodeHasBeenSet = false;
89
90 Aws::String m_errorMessage;
91 bool m_errorMessageHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Chime
96} // namespace Aws
void SetPhoneNumberId(const Aws::String &value)
PhoneNumberError & WithPhoneNumberId(const char *value)
void SetErrorCode(ErrorCode &&value)
PhoneNumberError & WithErrorMessage(const char *value)
PhoneNumberError & WithPhoneNumberId(Aws::String &&value)
PhoneNumberError & WithPhoneNumberId(const Aws::String &value)
void SetErrorMessage(const char *value)
const ErrorCode & GetErrorCode() const
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CHIME_API PhoneNumberError & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPhoneNumberId(Aws::String &&value)
AWS_CHIME_API PhoneNumberError(Aws::Utils::Json::JsonView jsonValue)
PhoneNumberError & WithErrorCode(ErrorCode &&value)
PhoneNumberError & WithErrorMessage(Aws::String &&value)
void SetErrorMessage(Aws::String &&value)
PhoneNumberError & WithErrorCode(const ErrorCode &value)
PhoneNumberError & WithErrorMessage(const Aws::String &value)
void SetErrorCode(const ErrorCode &value)
void SetPhoneNumberId(const char *value)
const Aws::String & GetPhoneNumberId() const
void SetErrorMessage(const Aws::String &value)
const Aws::String & GetErrorMessage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue