AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
35 {
36 public:
37 AWS_PROMETHEUSSERVICE_API LoggingConfigurationMetadata();
38 AWS_PROMETHEUSSERVICE_API LoggingConfigurationMetadata(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
48 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
49 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
50 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
51 inline LoggingConfigurationMetadata& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
52 inline LoggingConfigurationMetadata& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
54
56
60 inline const Aws::String& GetLogGroupArn() const{ return m_logGroupArn; }
61 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
62 inline void SetLogGroupArn(const Aws::String& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = value; }
63 inline void SetLogGroupArn(Aws::String&& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = std::move(value); }
64 inline void SetLogGroupArn(const char* value) { m_logGroupArnHasBeenSet = true; m_logGroupArn.assign(value); }
65 inline LoggingConfigurationMetadata& WithLogGroupArn(const Aws::String& value) { SetLogGroupArn(value); return *this;}
66 inline LoggingConfigurationMetadata& WithLogGroupArn(Aws::String&& value) { SetLogGroupArn(std::move(value)); return *this;}
67 inline LoggingConfigurationMetadata& WithLogGroupArn(const char* value) { SetLogGroupArn(value); return *this;}
69
71
75 inline const Aws::Utils::DateTime& GetModifiedAt() const{ return m_modifiedAt; }
76 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
77 inline void SetModifiedAt(const Aws::Utils::DateTime& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = value; }
78 inline void SetModifiedAt(Aws::Utils::DateTime&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::move(value); }
80 inline LoggingConfigurationMetadata& WithModifiedAt(Aws::Utils::DateTime&& value) { SetModifiedAt(std::move(value)); return *this;}
82
84
87 inline const LoggingConfigurationStatus& GetStatus() const{ return m_status; }
88 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
89 inline void SetStatus(const LoggingConfigurationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
90 inline void SetStatus(LoggingConfigurationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
91 inline LoggingConfigurationMetadata& WithStatus(const LoggingConfigurationStatus& value) { SetStatus(value); return *this;}
92 inline LoggingConfigurationMetadata& WithStatus(LoggingConfigurationStatus&& value) { SetStatus(std::move(value)); return *this;}
94
96
99 inline const Aws::String& GetWorkspace() const{ return m_workspace; }
100 inline bool WorkspaceHasBeenSet() const { return m_workspaceHasBeenSet; }
101 inline void SetWorkspace(const Aws::String& value) { m_workspaceHasBeenSet = true; m_workspace = value; }
102 inline void SetWorkspace(Aws::String&& value) { m_workspaceHasBeenSet = true; m_workspace = std::move(value); }
103 inline void SetWorkspace(const char* value) { m_workspaceHasBeenSet = true; m_workspace.assign(value); }
104 inline LoggingConfigurationMetadata& WithWorkspace(const Aws::String& value) { SetWorkspace(value); return *this;}
105 inline LoggingConfigurationMetadata& WithWorkspace(Aws::String&& value) { SetWorkspace(std::move(value)); return *this;}
106 inline LoggingConfigurationMetadata& WithWorkspace(const char* value) { SetWorkspace(value); return *this;}
108 private:
109
110 Aws::Utils::DateTime m_createdAt;
111 bool m_createdAtHasBeenSet = false;
112
113 Aws::String m_logGroupArn;
114 bool m_logGroupArnHasBeenSet = false;
115
116 Aws::Utils::DateTime m_modifiedAt;
117 bool m_modifiedAtHasBeenSet = false;
118
120 bool m_statusHasBeenSet = false;
121
122 Aws::String m_workspace;
123 bool m_workspaceHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace PrometheusService
128} // namespace Aws
LoggingConfigurationMetadata & WithWorkspace(Aws::String &&value)
LoggingConfigurationMetadata & WithLogGroupArn(const Aws::String &value)
LoggingConfigurationMetadata & WithModifiedAt(Aws::Utils::DateTime &&value)
LoggingConfigurationMetadata & WithCreatedAt(Aws::Utils::DateTime &&value)
LoggingConfigurationMetadata & WithModifiedAt(const Aws::Utils::DateTime &value)
LoggingConfigurationMetadata & WithLogGroupArn(Aws::String &&value)
LoggingConfigurationMetadata & WithWorkspace(const char *value)
AWS_PROMETHEUSSERVICE_API LoggingConfigurationMetadata(Aws::Utils::Json::JsonView jsonValue)
LoggingConfigurationMetadata & WithStatus(const LoggingConfigurationStatus &value)
AWS_PROMETHEUSSERVICE_API LoggingConfigurationMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
LoggingConfigurationMetadata & WithWorkspace(const Aws::String &value)
LoggingConfigurationMetadata & WithLogGroupArn(const char *value)
LoggingConfigurationMetadata & WithCreatedAt(const Aws::Utils::DateTime &value)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
LoggingConfigurationMetadata & WithStatus(LoggingConfigurationStatus &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue