AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RouteMatrixEntryError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/location/LocationService_EXPORTS.h>
9#include <aws/location/model/RouteMatrixErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LocationService {
21namespace Model {
22
43 public:
44 AWS_LOCATIONSERVICE_API RouteMatrixEntryError() = default;
45 AWS_LOCATIONSERVICE_API RouteMatrixEntryError(Aws::Utils::Json::JsonView jsonValue);
46 AWS_LOCATIONSERVICE_API RouteMatrixEntryError& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
53 inline RouteMatrixErrorCode GetCode() const { return m_code; }
54 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
55 inline void SetCode(RouteMatrixErrorCode value) {
56 m_codeHasBeenSet = true;
57 m_code = value;
58 }
60 SetCode(value);
61 return *this;
62 }
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) {
73 m_messageHasBeenSet = true;
74 m_message = std::forward<MessageT>(value);
75 }
76 template <typename MessageT = Aws::String>
78 SetMessage(std::forward<MessageT>(value));
79 return *this;
80 }
82 private:
84
85 Aws::String m_message;
86 bool m_codeHasBeenSet = false;
87 bool m_messageHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace LocationService
92} // 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