/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace PrometheusService { namespace Model { /** *

Represents the properties of a logging configuration metadata.

See * Also:

AWS * API Reference

*/ class LoggingConfigurationMetadata { public: AWS_PROMETHEUSSERVICE_API LoggingConfigurationMetadata(); AWS_PROMETHEUSSERVICE_API LoggingConfigurationMetadata(Aws::Utils::Json::JsonView jsonValue); AWS_PROMETHEUSSERVICE_API LoggingConfigurationMetadata& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The status of the logging configuration.

*/ inline const LoggingConfigurationStatus& GetStatus() const{ return m_status; } /** *

The status of the logging configuration.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the logging configuration.

*/ inline void SetStatus(const LoggingConfigurationStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the logging configuration.

*/ inline void SetStatus(LoggingConfigurationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the logging configuration.

*/ inline LoggingConfigurationMetadata& WithStatus(const LoggingConfigurationStatus& value) { SetStatus(value); return *this;} /** *

The status of the logging configuration.

*/ inline LoggingConfigurationMetadata& WithStatus(LoggingConfigurationStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The workspace where the logging configuration exists.

*/ inline const Aws::String& GetWorkspace() const{ return m_workspace; } /** *

The workspace where the logging configuration exists.

*/ inline bool WorkspaceHasBeenSet() const { return m_workspaceHasBeenSet; } /** *

The workspace where the logging configuration exists.

*/ inline void SetWorkspace(const Aws::String& value) { m_workspaceHasBeenSet = true; m_workspace = value; } /** *

The workspace where the logging configuration exists.

*/ inline void SetWorkspace(Aws::String&& value) { m_workspaceHasBeenSet = true; m_workspace = std::move(value); } /** *

The workspace where the logging configuration exists.

*/ inline void SetWorkspace(const char* value) { m_workspaceHasBeenSet = true; m_workspace.assign(value); } /** *

The workspace where the logging configuration exists.

*/ inline LoggingConfigurationMetadata& WithWorkspace(const Aws::String& value) { SetWorkspace(value); return *this;} /** *

The workspace where the logging configuration exists.

*/ inline LoggingConfigurationMetadata& WithWorkspace(Aws::String&& value) { SetWorkspace(std::move(value)); return *this;} /** *

The workspace where the logging configuration exists.

*/ inline LoggingConfigurationMetadata& WithWorkspace(const char* value) { SetWorkspace(value); return *this;} /** *

The ARN of the CW log group to which the vended log data will be * published.

*/ inline const Aws::String& GetLogGroupArn() const{ return m_logGroupArn; } /** *

The ARN of the CW log group to which the vended log data will be * published.

*/ inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; } /** *

The ARN of the CW log group to which the vended log data will be * published.

*/ inline void SetLogGroupArn(const Aws::String& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = value; } /** *

The ARN of the CW log group to which the vended log data will be * published.

*/ inline void SetLogGroupArn(Aws::String&& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = std::move(value); } /** *

The ARN of the CW log group to which the vended log data will be * published.

*/ inline void SetLogGroupArn(const char* value) { m_logGroupArnHasBeenSet = true; m_logGroupArn.assign(value); } /** *

The ARN of the CW log group to which the vended log data will be * published.

*/ inline LoggingConfigurationMetadata& WithLogGroupArn(const Aws::String& value) { SetLogGroupArn(value); return *this;} /** *

The ARN of the CW log group to which the vended log data will be * published.

*/ inline LoggingConfigurationMetadata& WithLogGroupArn(Aws::String&& value) { SetLogGroupArn(std::move(value)); return *this;} /** *

The ARN of the CW log group to which the vended log data will be * published.

*/ inline LoggingConfigurationMetadata& WithLogGroupArn(const char* value) { SetLogGroupArn(value); return *this;} /** *

The time when the logging configuration was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time when the logging configuration was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time when the logging configuration was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The time when the logging configuration was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The time when the logging configuration was created.

*/ inline LoggingConfigurationMetadata& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time when the logging configuration was created.

*/ inline LoggingConfigurationMetadata& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The time when the logging configuration was modified.

*/ inline const Aws::Utils::DateTime& GetModifiedAt() const{ return m_modifiedAt; } /** *

The time when the logging configuration was modified.

*/ inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; } /** *

The time when the logging configuration was modified.

*/ inline void SetModifiedAt(const Aws::Utils::DateTime& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = value; } /** *

The time when the logging configuration was modified.

*/ inline void SetModifiedAt(Aws::Utils::DateTime&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::move(value); } /** *

The time when the logging configuration was modified.

*/ inline LoggingConfigurationMetadata& WithModifiedAt(const Aws::Utils::DateTime& value) { SetModifiedAt(value); return *this;} /** *

The time when the logging configuration was modified.

*/ inline LoggingConfigurationMetadata& WithModifiedAt(Aws::Utils::DateTime&& value) { SetModifiedAt(std::move(value)); return *this;} private: LoggingConfigurationStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_workspace; bool m_workspaceHasBeenSet = false; Aws::String m_logGroupArn; bool m_logGroupArnHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_modifiedAt; bool m_modifiedAtHasBeenSet = false; }; } // namespace Model } // namespace PrometheusService } // namespace Aws