AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
QueryLoggingConfigurationMetadata.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/amp/model/QueryLoggingConfigurationStatus.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/amp/model/LoggingDestination.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace PrometheusService
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_PROMETHEUSSERVICE_API QueryLoggingConfigurationMetadata() = default;
41 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
49 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
50 template<typename CreatedAtT = Aws::Utils::DateTime>
51 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
52 template<typename CreatedAtT = Aws::Utils::DateTime>
53 QueryLoggingConfigurationMetadata& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
55
57
60 inline const Aws::Vector<LoggingDestination>& GetDestinations() const { return m_destinations; }
61 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
62 template<typename DestinationsT = Aws::Vector<LoggingDestination>>
63 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
64 template<typename DestinationsT = Aws::Vector<LoggingDestination>>
65 QueryLoggingConfigurationMetadata& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
66 template<typename DestinationsT = LoggingDestination>
67 QueryLoggingConfigurationMetadata& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
69
71
74 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
75 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
76 template<typename ModifiedAtT = Aws::Utils::DateTime>
77 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
78 template<typename ModifiedAtT = Aws::Utils::DateTime>
79 QueryLoggingConfigurationMetadata& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
81
83
86 inline const QueryLoggingConfigurationStatus& GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 template<typename StatusT = QueryLoggingConfigurationStatus>
89 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
90 template<typename StatusT = QueryLoggingConfigurationStatus>
91 QueryLoggingConfigurationMetadata& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
93
95
98 inline const Aws::String& GetWorkspace() const { return m_workspace; }
99 inline bool WorkspaceHasBeenSet() const { return m_workspaceHasBeenSet; }
100 template<typename WorkspaceT = Aws::String>
101 void SetWorkspace(WorkspaceT&& value) { m_workspaceHasBeenSet = true; m_workspace = std::forward<WorkspaceT>(value); }
102 template<typename WorkspaceT = Aws::String>
103 QueryLoggingConfigurationMetadata& WithWorkspace(WorkspaceT&& value) { SetWorkspace(std::forward<WorkspaceT>(value)); return *this;}
105 private:
106
107 Aws::Utils::DateTime m_createdAt{};
108 bool m_createdAtHasBeenSet = false;
109
110 Aws::Vector<LoggingDestination> m_destinations;
111 bool m_destinationsHasBeenSet = false;
112
113 Aws::Utils::DateTime m_modifiedAt{};
114 bool m_modifiedAtHasBeenSet = false;
115
116 QueryLoggingConfigurationStatus m_status;
117 bool m_statusHasBeenSet = false;
118
119 Aws::String m_workspace;
120 bool m_workspaceHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace PrometheusService
125} // 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