AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RouteMatrixEntryError.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/location/model/RouteMatrixErrorCode.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 LocationService
23{
24namespace Model
25{
26
47 {
48 public:
49 AWS_LOCATIONSERVICE_API RouteMatrixEntryError();
50 AWS_LOCATIONSERVICE_API RouteMatrixEntryError(Aws::Utils::Json::JsonView jsonValue);
51 AWS_LOCATIONSERVICE_API RouteMatrixEntryError& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const RouteMatrixErrorCode& GetCode() const{ return m_code; }
60 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
61 inline void SetCode(const RouteMatrixErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
62 inline void SetCode(RouteMatrixErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
63 inline RouteMatrixEntryError& WithCode(const RouteMatrixErrorCode& value) { SetCode(value); return *this;}
64 inline RouteMatrixEntryError& WithCode(RouteMatrixErrorCode&& value) { SetCode(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetMessage() const{ return m_message; }
72 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
73 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
74 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
75 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
76 inline RouteMatrixEntryError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
77 inline RouteMatrixEntryError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
78 inline RouteMatrixEntryError& WithMessage(const char* value) { SetMessage(value); return *this;}
80 private:
81
83 bool m_codeHasBeenSet = false;
84
85 Aws::String m_message;
86 bool m_messageHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace LocationService
91} // namespace Aws
const RouteMatrixErrorCode & GetCode() const
AWS_LOCATIONSERVICE_API RouteMatrixEntryError()
void SetCode(const RouteMatrixErrorCode &value)
AWS_LOCATIONSERVICE_API RouteMatrixEntryError(Aws::Utils::Json::JsonView jsonValue)
bool MessageHasBeenSet() const
void SetMessage(const char *value)
bool CodeHasBeenSet() const
RouteMatrixEntryError & WithMessage(const Aws::String &value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCode(RouteMatrixErrorCode &&value)
RouteMatrixEntryError & WithCode(const RouteMatrixErrorCode &value)
void SetMessage(Aws::String &&value)
RouteMatrixEntryError & WithMessage(const char *value)
const Aws::String & GetMessage() const
RouteMatrixEntryError & WithMessage(Aws::String &&value)
void SetMessage(const Aws::String &value)
AWS_LOCATIONSERVICE_API RouteMatrixEntryError & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteMatrixEntryError & WithCode(RouteMatrixErrorCode &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue