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

A partition dimension defined by a timestamp attribute.

See * Also:

AWS * API Reference

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

The attribute name of the partition defined by a timestamp.

*/ inline const Aws::String& GetAttributeName() const{ return m_attributeName; } /** *

The attribute name of the partition defined by a timestamp.

*/ inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; } /** *

The attribute name of the partition defined by a timestamp.

*/ inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; } /** *

The attribute name of the partition defined by a timestamp.

*/ inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); } /** *

The attribute name of the partition defined by a timestamp.

*/ inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); } /** *

The attribute name of the partition defined by a timestamp.

*/ inline TimestampPartition& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;} /** *

The attribute name of the partition defined by a timestamp.

*/ inline TimestampPartition& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;} /** *

The attribute name of the partition defined by a timestamp.

*/ inline TimestampPartition& WithAttributeName(const char* value) { SetAttributeName(value); return *this;} /** *

The timestamp format of a partition defined by a timestamp. The default * format is seconds since epoch (January 1, 1970 at midnight UTC time).

*/ inline const Aws::String& GetTimestampFormat() const{ return m_timestampFormat; } /** *

The timestamp format of a partition defined by a timestamp. The default * format is seconds since epoch (January 1, 1970 at midnight UTC time).

*/ inline bool TimestampFormatHasBeenSet() const { return m_timestampFormatHasBeenSet; } /** *

The timestamp format of a partition defined by a timestamp. The default * format is seconds since epoch (January 1, 1970 at midnight UTC time).

*/ inline void SetTimestampFormat(const Aws::String& value) { m_timestampFormatHasBeenSet = true; m_timestampFormat = value; } /** *

The timestamp format of a partition defined by a timestamp. The default * format is seconds since epoch (January 1, 1970 at midnight UTC time).

*/ inline void SetTimestampFormat(Aws::String&& value) { m_timestampFormatHasBeenSet = true; m_timestampFormat = std::move(value); } /** *

The timestamp format of a partition defined by a timestamp. The default * format is seconds since epoch (January 1, 1970 at midnight UTC time).

*/ inline void SetTimestampFormat(const char* value) { m_timestampFormatHasBeenSet = true; m_timestampFormat.assign(value); } /** *

The timestamp format of a partition defined by a timestamp. The default * format is seconds since epoch (January 1, 1970 at midnight UTC time).

*/ inline TimestampPartition& WithTimestampFormat(const Aws::String& value) { SetTimestampFormat(value); return *this;} /** *

The timestamp format of a partition defined by a timestamp. The default * format is seconds since epoch (January 1, 1970 at midnight UTC time).

*/ inline TimestampPartition& WithTimestampFormat(Aws::String&& value) { SetTimestampFormat(std::move(value)); return *this;} /** *

The timestamp format of a partition defined by a timestamp. The default * format is seconds since epoch (January 1, 1970 at midnight UTC time).

*/ inline TimestampPartition& WithTimestampFormat(const char* value) { SetTimestampFormat(value); return *this;} private: Aws::String m_attributeName; bool m_attributeNameHasBeenSet = false; Aws::String m_timestampFormat; bool m_timestampFormatHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws