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

This structure contains the configuration information about one metric * stream.

See Also:

AWS * API Reference

*/ class MetricStreamEntry { public: AWS_CLOUDWATCH_API MetricStreamEntry(); AWS_CLOUDWATCH_API MetricStreamEntry(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API MetricStreamEntry& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ARN of the metric stream.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the metric stream.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the metric stream.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the metric stream.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the metric stream.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the metric stream.

*/ inline MetricStreamEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the metric stream.

*/ inline MetricStreamEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the metric stream.

*/ inline MetricStreamEntry& WithArn(const char* value) { SetArn(value); return *this;} /** *

The date that the metric stream was originally created.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

The date that the metric stream was originally created.

*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *

The date that the metric stream was originally created.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *

The date that the metric stream was originally created.

*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *

The date that the metric stream was originally created.

*/ inline MetricStreamEntry& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The date that the metric stream was originally created.

*/ inline MetricStreamEntry& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The date that the configuration of this metric stream was most recently * updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdateDate() const{ return m_lastUpdateDate; } /** *

The date that the configuration of this metric stream was most recently * updated.

*/ inline bool LastUpdateDateHasBeenSet() const { return m_lastUpdateDateHasBeenSet; } /** *

The date that the configuration of this metric stream was most recently * updated.

*/ inline void SetLastUpdateDate(const Aws::Utils::DateTime& value) { m_lastUpdateDateHasBeenSet = true; m_lastUpdateDate = value; } /** *

The date that the configuration of this metric stream was most recently * updated.

*/ inline void SetLastUpdateDate(Aws::Utils::DateTime&& value) { m_lastUpdateDateHasBeenSet = true; m_lastUpdateDate = std::move(value); } /** *

The date that the configuration of this metric stream was most recently * updated.

*/ inline MetricStreamEntry& WithLastUpdateDate(const Aws::Utils::DateTime& value) { SetLastUpdateDate(value); return *this;} /** *

The date that the configuration of this metric stream was most recently * updated.

*/ inline MetricStreamEntry& WithLastUpdateDate(Aws::Utils::DateTime&& value) { SetLastUpdateDate(std::move(value)); return *this;} /** *

The name of the metric stream.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the metric stream.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the metric stream.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the metric stream.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the metric stream.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the metric stream.

*/ inline MetricStreamEntry& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the metric stream.

*/ inline MetricStreamEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the metric stream.

*/ inline MetricStreamEntry& WithName(const char* value) { SetName(value); return *this;} /** *

The ARN of the Kinesis Firehose devlivery stream that is used for this metric * stream.

*/ inline const Aws::String& GetFirehoseArn() const{ return m_firehoseArn; } /** *

The ARN of the Kinesis Firehose devlivery stream that is used for this metric * stream.

*/ inline bool FirehoseArnHasBeenSet() const { return m_firehoseArnHasBeenSet; } /** *

The ARN of the Kinesis Firehose devlivery stream that is used for this metric * stream.

*/ inline void SetFirehoseArn(const Aws::String& value) { m_firehoseArnHasBeenSet = true; m_firehoseArn = value; } /** *

The ARN of the Kinesis Firehose devlivery stream that is used for this metric * stream.

*/ inline void SetFirehoseArn(Aws::String&& value) { m_firehoseArnHasBeenSet = true; m_firehoseArn = std::move(value); } /** *

The ARN of the Kinesis Firehose devlivery stream that is used for this metric * stream.

*/ inline void SetFirehoseArn(const char* value) { m_firehoseArnHasBeenSet = true; m_firehoseArn.assign(value); } /** *

The ARN of the Kinesis Firehose devlivery stream that is used for this metric * stream.

*/ inline MetricStreamEntry& WithFirehoseArn(const Aws::String& value) { SetFirehoseArn(value); return *this;} /** *

The ARN of the Kinesis Firehose devlivery stream that is used for this metric * stream.

*/ inline MetricStreamEntry& WithFirehoseArn(Aws::String&& value) { SetFirehoseArn(std::move(value)); return *this;} /** *

The ARN of the Kinesis Firehose devlivery stream that is used for this metric * stream.

*/ inline MetricStreamEntry& WithFirehoseArn(const char* value) { SetFirehoseArn(value); return *this;} /** *

The current state of this stream. Valid values are running and * stopped.

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

The current state of this stream. Valid values are running and * stopped.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The current state of this stream. Valid values are running and * stopped.

*/ inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The current state of this stream. Valid values are running and * stopped.

*/ inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The current state of this stream. Valid values are running and * stopped.

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

The current state of this stream. Valid values are running and * stopped.

*/ inline MetricStreamEntry& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

The current state of this stream. Valid values are running and * stopped.

*/ inline MetricStreamEntry& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

The current state of this stream. Valid values are running and * stopped.

*/ inline MetricStreamEntry& WithState(const char* value) { SetState(value); return *this;} /** *

The output format of this metric stream. Valid values are json * and opentelemetry0.7.

*/ inline const MetricStreamOutputFormat& GetOutputFormat() const{ return m_outputFormat; } /** *

The output format of this metric stream. Valid values are json * and opentelemetry0.7.

*/ inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; } /** *

The output format of this metric stream. Valid values are json * and opentelemetry0.7.

*/ inline void SetOutputFormat(const MetricStreamOutputFormat& value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; } /** *

The output format of this metric stream. Valid values are json * and opentelemetry0.7.

*/ inline void SetOutputFormat(MetricStreamOutputFormat&& value) { m_outputFormatHasBeenSet = true; m_outputFormat = std::move(value); } /** *

The output format of this metric stream. Valid values are json * and opentelemetry0.7.

*/ inline MetricStreamEntry& WithOutputFormat(const MetricStreamOutputFormat& value) { SetOutputFormat(value); return *this;} /** *

The output format of this metric stream. Valid values are json * and opentelemetry0.7.

*/ inline MetricStreamEntry& WithOutputFormat(MetricStreamOutputFormat&& value) { SetOutputFormat(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::Utils::DateTime m_lastUpdateDate; bool m_lastUpdateDateHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_firehoseArn; bool m_firehoseArnHasBeenSet = false; Aws::String m_state; bool m_stateHasBeenSet = false; MetricStreamOutputFormat m_outputFormat; bool m_outputFormatHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws