/** * 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 an attribute.

See Also:

* AWS * API Reference

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

The name of the attribute that defines a partition dimension.

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

The name of the attribute that defines a partition dimension.

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

The name of the attribute that defines a partition dimension.

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

The name of the attribute that defines a partition dimension.

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

The name of the attribute that defines a partition dimension.

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

The name of the attribute that defines a partition dimension.

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

The name of the attribute that defines a partition dimension.

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

The name of the attribute that defines a partition dimension.

*/ inline Partition& WithAttributeName(const char* value) { SetAttributeName(value); return *this;} private: Aws::String m_attributeName; bool m_attributeNameHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws