AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ScheduledQueryDestination.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/ActionStatus.h>
10#include <aws/logs/model/ScheduledQueryDestinationType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchLogs {
22namespace Model {
23
32 public:
33 AWS_CLOUDWATCHLOGS_API ScheduledQueryDestination() = default;
34 AWS_CLOUDWATCHLOGS_API ScheduledQueryDestination(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline ScheduledQueryDestinationType GetDestinationType() const { return m_destinationType; }
43 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
45 m_destinationTypeHasBeenSet = true;
46 m_destinationType = value;
47 }
49 SetDestinationType(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDestinationIdentifier() const { return m_destinationIdentifier; }
59 inline bool DestinationIdentifierHasBeenSet() const { return m_destinationIdentifierHasBeenSet; }
60 template <typename DestinationIdentifierT = Aws::String>
61 void SetDestinationIdentifier(DestinationIdentifierT&& value) {
62 m_destinationIdentifierHasBeenSet = true;
63 m_destinationIdentifier = std::forward<DestinationIdentifierT>(value);
64 }
65 template <typename DestinationIdentifierT = Aws::String>
66 ScheduledQueryDestination& WithDestinationIdentifier(DestinationIdentifierT&& value) {
67 SetDestinationIdentifier(std::forward<DestinationIdentifierT>(value));
68 return *this;
69 }
71
73
76 inline ActionStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(ActionStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetProcessedIdentifier() const { return m_processedIdentifier; }
93 inline bool ProcessedIdentifierHasBeenSet() const { return m_processedIdentifierHasBeenSet; }
94 template <typename ProcessedIdentifierT = Aws::String>
95 void SetProcessedIdentifier(ProcessedIdentifierT&& value) {
96 m_processedIdentifierHasBeenSet = true;
97 m_processedIdentifier = std::forward<ProcessedIdentifierT>(value);
98 }
99 template <typename ProcessedIdentifierT = Aws::String>
100 ScheduledQueryDestination& WithProcessedIdentifier(ProcessedIdentifierT&& value) {
101 SetProcessedIdentifier(std::forward<ProcessedIdentifierT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
111 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
112 template <typename ErrorMessageT = Aws::String>
113 void SetErrorMessage(ErrorMessageT&& value) {
114 m_errorMessageHasBeenSet = true;
115 m_errorMessage = std::forward<ErrorMessageT>(value);
116 }
117 template <typename ErrorMessageT = Aws::String>
119 SetErrorMessage(std::forward<ErrorMessageT>(value));
120 return *this;
121 }
123 private:
125
126 Aws::String m_destinationIdentifier;
127
129
130 Aws::String m_processedIdentifier;
131
132 Aws::String m_errorMessage;
133 bool m_destinationTypeHasBeenSet = false;
134 bool m_destinationIdentifierHasBeenSet = false;
135 bool m_statusHasBeenSet = false;
136 bool m_processedIdentifierHasBeenSet = false;
137 bool m_errorMessageHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace CloudWatchLogs
142} // namespace Aws
ScheduledQueryDestination & WithDestinationType(ScheduledQueryDestinationType value)
AWS_CLOUDWATCHLOGS_API ScheduledQueryDestination()=default
void SetDestinationType(ScheduledQueryDestinationType value)
ScheduledQueryDestination & WithStatus(ActionStatus value)
ScheduledQueryDestination & WithDestinationIdentifier(DestinationIdentifierT &&value)
ScheduledQueryDestination & WithErrorMessage(ErrorMessageT &&value)
AWS_CLOUDWATCHLOGS_API ScheduledQueryDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduledQueryDestination & WithProcessedIdentifier(ProcessedIdentifierT &&value)
AWS_CLOUDWATCHLOGS_API ScheduledQueryDestination(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue