AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
QueryCompileError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9#include <aws/logs/model/QueryCompileErrorLocation.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchLogs {
21namespace Model {
22
29 public:
30 AWS_CLOUDWATCHLOGS_API QueryCompileError() = default;
31 AWS_CLOUDWATCHLOGS_API QueryCompileError(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDWATCHLOGS_API QueryCompileError& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const QueryCompileErrorLocation& GetLocation() const { return m_location; }
40 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
41 template <typename LocationT = QueryCompileErrorLocation>
42 void SetLocation(LocationT&& value) {
43 m_locationHasBeenSet = true;
44 m_location = std::forward<LocationT>(value);
45 }
46 template <typename LocationT = QueryCompileErrorLocation>
47 QueryCompileError& WithLocation(LocationT&& value) {
48 SetLocation(std::forward<LocationT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetMessage() const { return m_message; }
58 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
59 template <typename MessageT = Aws::String>
60 void SetMessage(MessageT&& value) {
61 m_messageHasBeenSet = true;
62 m_message = std::forward<MessageT>(value);
63 }
64 template <typename MessageT = Aws::String>
65 QueryCompileError& WithMessage(MessageT&& value) {
66 SetMessage(std::forward<MessageT>(value));
67 return *this;
68 }
70 private:
72
73 Aws::String m_message;
74 bool m_locationHasBeenSet = false;
75 bool m_messageHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace CloudWatchLogs
80} // namespace Aws
AWS_CLOUDWATCHLOGS_API QueryCompileError(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
QueryCompileError & WithLocation(LocationT &&value)
AWS_CLOUDWATCHLOGS_API QueryCompileError()=default
AWS_CLOUDWATCHLOGS_API QueryCompileError & operator=(Aws::Utils::Json::JsonView jsonValue)
QueryCompileError & WithMessage(MessageT &&value)
const QueryCompileErrorLocation & GetLocation() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue