AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
LoggingConfigurationMetadata.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/LoggingConfigurationStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PrometheusService {
22namespace Model {
23
32 public:
33 AWS_PROMETHEUSSERVICE_API LoggingConfigurationMetadata() = default;
34 AWS_PROMETHEUSSERVICE_API LoggingConfigurationMetadata(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const LoggingConfigurationStatus& GetStatus() const { return m_status; }
43 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
44 template <typename StatusT = LoggingConfigurationStatus>
45 void SetStatus(StatusT&& value) {
46 m_statusHasBeenSet = true;
47 m_status = std::forward<StatusT>(value);
48 }
49 template <typename StatusT = LoggingConfigurationStatus>
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
79 inline const Aws::String& GetLogGroupArn() const { return m_logGroupArn; }
80 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
81 template <typename LogGroupArnT = Aws::String>
82 void SetLogGroupArn(LogGroupArnT&& value) {
83 m_logGroupArnHasBeenSet = true;
84 m_logGroupArn = std::forward<LogGroupArnT>(value);
85 }
86 template <typename LogGroupArnT = Aws::String>
88 SetLogGroupArn(std::forward<LogGroupArnT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
98 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
99 template <typename CreatedAtT = Aws::Utils::DateTime>
100 void SetCreatedAt(CreatedAtT&& value) {
101 m_createdAtHasBeenSet = true;
102 m_createdAt = std::forward<CreatedAtT>(value);
103 }
104 template <typename CreatedAtT = Aws::Utils::DateTime>
106 SetCreatedAt(std::forward<CreatedAtT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
117 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
118 template <typename ModifiedAtT = Aws::Utils::DateTime>
119 void SetModifiedAt(ModifiedAtT&& value) {
120 m_modifiedAtHasBeenSet = true;
121 m_modifiedAt = std::forward<ModifiedAtT>(value);
122 }
123 template <typename ModifiedAtT = Aws::Utils::DateTime>
125 SetModifiedAt(std::forward<ModifiedAtT>(value));
126 return *this;
127 }
129 private:
131
132 Aws::String m_workspace;
133
134 Aws::String m_logGroupArn;
135
136 Aws::Utils::DateTime m_createdAt{};
137
138 Aws::Utils::DateTime m_modifiedAt{};
139 bool m_statusHasBeenSet = false;
140 bool m_workspaceHasBeenSet = false;
141 bool m_logGroupArnHasBeenSet = false;
142 bool m_createdAtHasBeenSet = false;
143 bool m_modifiedAtHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace PrometheusService
148} // namespace Aws
LoggingConfigurationMetadata & WithCreatedAt(CreatedAtT &&value)
AWS_PROMETHEUSSERVICE_API LoggingConfigurationMetadata(Aws::Utils::Json::JsonView jsonValue)
LoggingConfigurationMetadata & WithModifiedAt(ModifiedAtT &&value)
LoggingConfigurationMetadata & WithWorkspace(WorkspaceT &&value)
AWS_PROMETHEUSSERVICE_API LoggingConfigurationMetadata()=default
LoggingConfigurationMetadata & WithLogGroupArn(LogGroupArnT &&value)
AWS_PROMETHEUSSERVICE_API LoggingConfigurationMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue