/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ElastiCache { namespace Model { /** */ class DescribeUsersRequest : public ElastiCacheRequest { public: AWS_ELASTICACHE_API DescribeUsersRequest(); // 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 "DescribeUsers"; } AWS_ELASTICACHE_API Aws::String SerializePayload() const override; protected: AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The Redis engine.

*/ inline const Aws::String& GetEngine() const{ return m_engine; } /** *

The Redis engine.

*/ inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; } /** *

The Redis engine.

*/ inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; } /** *

The Redis engine.

*/ inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); } /** *

The Redis engine.

*/ inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); } /** *

The Redis engine.

*/ inline DescribeUsersRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;} /** *

The Redis engine.

*/ inline DescribeUsersRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;} /** *

The Redis engine.

*/ inline DescribeUsersRequest& WithEngine(const char* value) { SetEngine(value); return *this;} /** *

The ID of the user.

*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *

The ID of the user.

*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *

The ID of the user.

*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *

The ID of the user.

*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *

The ID of the user.

*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *

The ID of the user.

*/ inline DescribeUsersRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *

The ID of the user.

*/ inline DescribeUsersRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *

The ID of the user.

*/ inline DescribeUsersRequest& WithUserId(const char* value) { SetUserId(value); return *this;} /** *

Filter to determine the list of User IDs to return.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

Filter to determine the list of User IDs to return.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

Filter to determine the list of User IDs to return.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

Filter to determine the list of User IDs to return.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

Filter to determine the list of User IDs to return.

*/ inline DescribeUsersRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

Filter to determine the list of User IDs to return.

*/ inline DescribeUsersRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

Filter to determine the list of User IDs to return.

*/ inline DescribeUsersRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

Filter to determine the list of User IDs to return.

*/ inline DescribeUsersRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

The maximum number of records to include in the response. If more records * exist than the specified MaxRecords value, a marker is included in the response * so that the remaining results can be retrieved.

*/ inline int GetMaxRecords() const{ return m_maxRecords; } /** *

The maximum number of records to include in the response. If more records * exist than the specified MaxRecords value, a marker is included in the response * so that the remaining results can be retrieved.

*/ inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; } /** *

The maximum number of records to include in the response. If more records * exist than the specified MaxRecords value, a marker is included in the response * so that the remaining results can be retrieved.

*/ inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; } /** *

The maximum number of records to include in the response. If more records * exist than the specified MaxRecords value, a marker is included in the response * so that the remaining results can be retrieved.

*/ inline DescribeUsersRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;} /** *

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords. >

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords. >

*/ inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } /** *

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords. >

*/ inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } /** *

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords. >

*/ inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } /** *

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords. >

*/ inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } /** *

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords. >

*/ inline DescribeUsersRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords. >

*/ inline DescribeUsersRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

An optional marker returned from a prior request. Use this marker for * pagination of results from this operation. If this parameter is specified, the * response includes only records beyond the marker, up to the value specified by * MaxRecords. >

*/ inline DescribeUsersRequest& WithMarker(const char* value) { SetMarker(value); return *this;} private: Aws::String m_engine; bool m_engineHasBeenSet = false; Aws::String m_userId; bool m_userIdHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; int m_maxRecords; bool m_maxRecordsHasBeenSet = false; Aws::String m_marker; bool m_markerHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws