/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Keyspaces { namespace Model { /** *

The optional clustering column portion of your primary key determines how the * data is clustered and sorted within each partition.

See Also:

* AWS * API Reference

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

The name(s) of the clustering column(s).

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

The name(s) of the clustering column(s).

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

The name(s) of the clustering column(s).

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

The name(s) of the clustering column(s).

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

The name(s) of the clustering column(s).

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

The name(s) of the clustering column(s).

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

The name(s) of the clustering column(s).

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

The name(s) of the clustering column(s).

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

Sets the ascendant (ASC) or descendant (DESC) order * modifier.

*/ inline const SortOrder& GetOrderBy() const{ return m_orderBy; } /** *

Sets the ascendant (ASC) or descendant (DESC) order * modifier.

*/ inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; } /** *

Sets the ascendant (ASC) or descendant (DESC) order * modifier.

*/ inline void SetOrderBy(const SortOrder& value) { m_orderByHasBeenSet = true; m_orderBy = value; } /** *

Sets the ascendant (ASC) or descendant (DESC) order * modifier.

*/ inline void SetOrderBy(SortOrder&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); } /** *

Sets the ascendant (ASC) or descendant (DESC) order * modifier.

*/ inline ClusteringKey& WithOrderBy(const SortOrder& value) { SetOrderBy(value); return *this;} /** *

Sets the ascendant (ASC) or descendant (DESC) order * modifier.

*/ inline ClusteringKey& WithOrderBy(SortOrder&& value) { SetOrderBy(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; SortOrder m_orderBy; bool m_orderByHasBeenSet = false; }; } // namespace Model } // namespace Keyspaces } // namespace Aws