AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 RouteMatrixErrorCode GetCode() const { return m_code; }
60 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
61 inline void SetCode(RouteMatrixErrorCode value) { m_codeHasBeenSet = true; m_code = value; }
62 inline RouteMatrixEntryError& WithCode(RouteMatrixErrorCode value) { SetCode(value); return *this;}
64
66
69 inline const Aws::String& GetMessage() const { return m_message; }
70 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
71 template<typename MessageT = Aws::String>
72 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
73 template<typename MessageT = Aws::String>
74 RouteMatrixEntryError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
76 private:
77
79 bool m_codeHasBeenSet = false;
80
81 Aws::String m_message;
82 bool m_messageHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace LocationService
87} // namespace Aws
AWS_LOCATIONSERVICE_API RouteMatrixEntryError()=default
AWS_LOCATIONSERVICE_API RouteMatrixEntryError(Aws::Utils::Json::JsonView jsonValue)
void SetCode(RouteMatrixErrorCode value)
bool MessageHasBeenSet() const
bool CodeHasBeenSet() const
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RouteMatrixEntryError & WithCode(RouteMatrixErrorCode value)
RouteMatrixEntryError & WithMessage(MessageT &&value)
void SetMessage(MessageT &&value)
const Aws::String & GetMessage() const
AWS_LOCATIONSERVICE_API RouteMatrixEntryError & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteMatrixErrorCode GetCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue