AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LoggingConfigurationMetadata.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/AWSString.h>
10#include <aws/amp/model/LoggingConfigurationStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PrometheusService
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_PROMETHEUSSERVICE_API LoggingConfigurationMetadata() = default;
39 AWS_PROMETHEUSSERVICE_API LoggingConfigurationMetadata(Aws::Utils::Json::JsonView jsonValue);
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 LoggingConfigurationMetadata& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
55
57
61 inline const Aws::String& GetLogGroupArn() const { return m_logGroupArn; }
62 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
63 template<typename LogGroupArnT = Aws::String>
64 void SetLogGroupArn(LogGroupArnT&& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = std::forward<LogGroupArnT>(value); }
65 template<typename LogGroupArnT = Aws::String>
66 LoggingConfigurationMetadata& WithLogGroupArn(LogGroupArnT&& value) { SetLogGroupArn(std::forward<LogGroupArnT>(value)); return *this;}
68
70
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 LoggingConfigurationMetadata& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
81
83
86 inline const LoggingConfigurationStatus& GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 template<typename StatusT = LoggingConfigurationStatus>
89 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
90 template<typename StatusT = LoggingConfigurationStatus>
91 LoggingConfigurationMetadata& 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 LoggingConfigurationMetadata& 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::String m_logGroupArn;
111 bool m_logGroupArnHasBeenSet = false;
112
113 Aws::Utils::DateTime m_modifiedAt{};
114 bool m_modifiedAtHasBeenSet = false;
115
116 LoggingConfigurationStatus 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
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