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

This structure includes the Timezone parameter, which you can * use to specify your time zone so that the labels that are associated with * returned metrics display the correct time for your time zone.

The * Timezone value affects a label only if you have a time-based * dynamic expression in the label. For more information about dynamic expressions * in labels, see Using * Dynamic Labels.

See Also:

AWS * API Reference

*/ class LabelOptions { public: AWS_CLOUDWATCH_API LabelOptions(); AWS_CLOUDWATCH_API LabelOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDWATCH_API LabelOptions& 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 time zone to use for metric data return in this operation. The format is * + or - followed by four digits. The first two digits * indicate the number of hours ahead or behind of UTC, and the final two digits * are the number of minutes. For example, +0130 indicates a time zone that is 1 * hour and 30 minutes ahead of UTC. The default is +0000.

*/ inline const Aws::String& GetTimezone() const{ return m_timezone; } /** *

The time zone to use for metric data return in this operation. The format is * + or - followed by four digits. The first two digits * indicate the number of hours ahead or behind of UTC, and the final two digits * are the number of minutes. For example, +0130 indicates a time zone that is 1 * hour and 30 minutes ahead of UTC. The default is +0000.

*/ inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; } /** *

The time zone to use for metric data return in this operation. The format is * + or - followed by four digits. The first two digits * indicate the number of hours ahead or behind of UTC, and the final two digits * are the number of minutes. For example, +0130 indicates a time zone that is 1 * hour and 30 minutes ahead of UTC. The default is +0000.

*/ inline void SetTimezone(const Aws::String& value) { m_timezoneHasBeenSet = true; m_timezone = value; } /** *

The time zone to use for metric data return in this operation. The format is * + or - followed by four digits. The first two digits * indicate the number of hours ahead or behind of UTC, and the final two digits * are the number of minutes. For example, +0130 indicates a time zone that is 1 * hour and 30 minutes ahead of UTC. The default is +0000.

*/ inline void SetTimezone(Aws::String&& value) { m_timezoneHasBeenSet = true; m_timezone = std::move(value); } /** *

The time zone to use for metric data return in this operation. The format is * + or - followed by four digits. The first two digits * indicate the number of hours ahead or behind of UTC, and the final two digits * are the number of minutes. For example, +0130 indicates a time zone that is 1 * hour and 30 minutes ahead of UTC. The default is +0000.

*/ inline void SetTimezone(const char* value) { m_timezoneHasBeenSet = true; m_timezone.assign(value); } /** *

The time zone to use for metric data return in this operation. The format is * + or - followed by four digits. The first two digits * indicate the number of hours ahead or behind of UTC, and the final two digits * are the number of minutes. For example, +0130 indicates a time zone that is 1 * hour and 30 minutes ahead of UTC. The default is +0000.

*/ inline LabelOptions& WithTimezone(const Aws::String& value) { SetTimezone(value); return *this;} /** *

The time zone to use for metric data return in this operation. The format is * + or - followed by four digits. The first two digits * indicate the number of hours ahead or behind of UTC, and the final two digits * are the number of minutes. For example, +0130 indicates a time zone that is 1 * hour and 30 minutes ahead of UTC. The default is +0000.

*/ inline LabelOptions& WithTimezone(Aws::String&& value) { SetTimezone(std::move(value)); return *this;} /** *

The time zone to use for metric data return in this operation. The format is * + or - followed by four digits. The first two digits * indicate the number of hours ahead or behind of UTC, and the final two digits * are the number of minutes. For example, +0130 indicates a time zone that is 1 * hour and 30 minutes ahead of UTC. The default is +0000.

*/ inline LabelOptions& WithTimezone(const char* value) { SetTimezone(value); return *this;} private: Aws::String m_timezone; bool m_timezoneHasBeenSet = false; }; } // namespace Model } // namespace CloudWatch } // namespace Aws