AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
QueryLoggingConfigurationMetadata.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/LoggingDestination.h>
9#include <aws/amp/model/QueryLoggingConfigurationStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PrometheusService {
24namespace Model {
25
32 public:
33 AWS_PROMETHEUSSERVICE_API QueryLoggingConfigurationMetadata() = default;
36 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const QueryLoggingConfigurationStatus& GetStatus() const { return m_status; }
43 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
44 template <typename StatusT = QueryLoggingConfigurationStatus>
45 void SetStatus(StatusT&& value) {
46 m_statusHasBeenSet = true;
47 m_status = std::forward<StatusT>(value);
48 }
49 template <typename StatusT = QueryLoggingConfigurationStatus>
51 SetStatus(std::forward<StatusT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetWorkspace() const { return m_workspace; }
61 inline bool WorkspaceHasBeenSet() const { return m_workspaceHasBeenSet; }
62 template <typename WorkspaceT = Aws::String>
63 void SetWorkspace(WorkspaceT&& value) {
64 m_workspaceHasBeenSet = true;
65 m_workspace = std::forward<WorkspaceT>(value);
66 }
67 template <typename WorkspaceT = Aws::String>
69 SetWorkspace(std::forward<WorkspaceT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<LoggingDestination>& GetDestinations() const { return m_destinations; }
79 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
80 template <typename DestinationsT = Aws::Vector<LoggingDestination>>
81 void SetDestinations(DestinationsT&& value) {
82 m_destinationsHasBeenSet = true;
83 m_destinations = std::forward<DestinationsT>(value);
84 }
85 template <typename DestinationsT = Aws::Vector<LoggingDestination>>
87 SetDestinations(std::forward<DestinationsT>(value));
88 return *this;
89 }
90 template <typename DestinationsT = LoggingDestination>
92 m_destinationsHasBeenSet = true;
93 m_destinations.emplace_back(std::forward<DestinationsT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
103 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
104 template <typename CreatedAtT = Aws::Utils::DateTime>
105 void SetCreatedAt(CreatedAtT&& value) {
106 m_createdAtHasBeenSet = true;
107 m_createdAt = std::forward<CreatedAtT>(value);
108 }
109 template <typename CreatedAtT = Aws::Utils::DateTime>
111 SetCreatedAt(std::forward<CreatedAtT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
121 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
122 template <typename ModifiedAtT = Aws::Utils::DateTime>
123 void SetModifiedAt(ModifiedAtT&& value) {
124 m_modifiedAtHasBeenSet = true;
125 m_modifiedAt = std::forward<ModifiedAtT>(value);
126 }
127 template <typename ModifiedAtT = Aws::Utils::DateTime>
129 SetModifiedAt(std::forward<ModifiedAtT>(value));
130 return *this;
131 }
133 private:
135
136 Aws::String m_workspace;
137
138 Aws::Vector<LoggingDestination> m_destinations;
139
140 Aws::Utils::DateTime m_createdAt{};
141
142 Aws::Utils::DateTime m_modifiedAt{};
143 bool m_statusHasBeenSet = false;
144 bool m_workspaceHasBeenSet = false;
145 bool m_destinationsHasBeenSet = false;
146 bool m_createdAtHasBeenSet = false;
147 bool m_modifiedAtHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace PrometheusService
152} // namespace Aws
AWS_PROMETHEUSSERVICE_API QueryLoggingConfigurationMetadata()=default
AWS_PROMETHEUSSERVICE_API QueryLoggingConfigurationMetadata(Aws::Utils::Json::JsonView jsonValue)
QueryLoggingConfigurationMetadata & AddDestinations(DestinationsT &&value)
QueryLoggingConfigurationMetadata & WithWorkspace(WorkspaceT &&value)
AWS_PROMETHEUSSERVICE_API QueryLoggingConfigurationMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
QueryLoggingConfigurationMetadata & WithDestinations(DestinationsT &&value)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
QueryLoggingConfigurationMetadata & WithCreatedAt(CreatedAtT &&value)
QueryLoggingConfigurationMetadata & WithModifiedAt(ModifiedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue