/** * 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 IoT { namespace Model { /** */ class GetCardinalityRequest : public IoTRequest { public: AWS_IOT_API GetCardinalityRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetCardinality"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The name of the index to search.

*/ inline const Aws::String& GetIndexName() const{ return m_indexName; } /** *

The name of the index to search.

*/ inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; } /** *

The name of the index to search.

*/ inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; } /** *

The name of the index to search.

*/ inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); } /** *

The name of the index to search.

*/ inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); } /** *

The name of the index to search.

*/ inline GetCardinalityRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;} /** *

The name of the index to search.

*/ inline GetCardinalityRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;} /** *

The name of the index to search.

*/ inline GetCardinalityRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;} /** *

The search query string.

*/ inline const Aws::String& GetQueryString() const{ return m_queryString; } /** *

The search query string.

*/ inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; } /** *

The search query string.

*/ inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; } /** *

The search query string.

*/ inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); } /** *

The search query string.

*/ inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); } /** *

The search query string.

*/ inline GetCardinalityRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;} /** *

The search query string.

*/ inline GetCardinalityRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;} /** *

The search query string.

*/ inline GetCardinalityRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;} /** *

The field to aggregate.

*/ inline const Aws::String& GetAggregationField() const{ return m_aggregationField; } /** *

The field to aggregate.

*/ inline bool AggregationFieldHasBeenSet() const { return m_aggregationFieldHasBeenSet; } /** *

The field to aggregate.

*/ inline void SetAggregationField(const Aws::String& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = value; } /** *

The field to aggregate.

*/ inline void SetAggregationField(Aws::String&& value) { m_aggregationFieldHasBeenSet = true; m_aggregationField = std::move(value); } /** *

The field to aggregate.

*/ inline void SetAggregationField(const char* value) { m_aggregationFieldHasBeenSet = true; m_aggregationField.assign(value); } /** *

The field to aggregate.

*/ inline GetCardinalityRequest& WithAggregationField(const Aws::String& value) { SetAggregationField(value); return *this;} /** *

The field to aggregate.

*/ inline GetCardinalityRequest& WithAggregationField(Aws::String&& value) { SetAggregationField(std::move(value)); return *this;} /** *

The field to aggregate.

*/ inline GetCardinalityRequest& WithAggregationField(const char* value) { SetAggregationField(value); return *this;} /** *

The query version.

*/ inline const Aws::String& GetQueryVersion() const{ return m_queryVersion; } /** *

The query version.

*/ inline bool QueryVersionHasBeenSet() const { return m_queryVersionHasBeenSet; } /** *

The query version.

*/ inline void SetQueryVersion(const Aws::String& value) { m_queryVersionHasBeenSet = true; m_queryVersion = value; } /** *

The query version.

*/ inline void SetQueryVersion(Aws::String&& value) { m_queryVersionHasBeenSet = true; m_queryVersion = std::move(value); } /** *

The query version.

*/ inline void SetQueryVersion(const char* value) { m_queryVersionHasBeenSet = true; m_queryVersion.assign(value); } /** *

The query version.

*/ inline GetCardinalityRequest& WithQueryVersion(const Aws::String& value) { SetQueryVersion(value); return *this;} /** *

The query version.

*/ inline GetCardinalityRequest& WithQueryVersion(Aws::String&& value) { SetQueryVersion(std::move(value)); return *this;} /** *

The query version.

*/ inline GetCardinalityRequest& WithQueryVersion(const char* value) { SetQueryVersion(value); return *this;} private: Aws::String m_indexName; bool m_indexNameHasBeenSet = false; Aws::String m_queryString; bool m_queryStringHasBeenSet = false; Aws::String m_aggregationField; bool m_aggregationFieldHasBeenSet = false; Aws::String m_queryVersion; bool m_queryVersionHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws