/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace ElastiCache { namespace Model { /** *

Represents the output of a DescribeCacheClusters * operation.

See Also:

AWS * API Reference

*/ class DescribeCacheClustersResult { public: AWS_ELASTICACHE_API DescribeCacheClustersResult(); AWS_ELASTICACHE_API DescribeCacheClustersResult(const Aws::AmazonWebServiceResult& result); AWS_ELASTICACHE_API DescribeCacheClustersResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Provides an identifier to allow retrieval of paginated results.

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

Provides an identifier to allow retrieval of paginated results.

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

Provides an identifier to allow retrieval of paginated results.

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

Provides an identifier to allow retrieval of paginated results.

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

Provides an identifier to allow retrieval of paginated results.

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

Provides an identifier to allow retrieval of paginated results.

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

Provides an identifier to allow retrieval of paginated results.

*/ inline DescribeCacheClustersResult& WithMarker(const char* value) { SetMarker(value); return *this;} /** *

A list of clusters. Each item in the list contains detailed information about * one cluster.

*/ inline const Aws::Vector& GetCacheClusters() const{ return m_cacheClusters; } /** *

A list of clusters. Each item in the list contains detailed information about * one cluster.

*/ inline void SetCacheClusters(const Aws::Vector& value) { m_cacheClusters = value; } /** *

A list of clusters. Each item in the list contains detailed information about * one cluster.

*/ inline void SetCacheClusters(Aws::Vector&& value) { m_cacheClusters = std::move(value); } /** *

A list of clusters. Each item in the list contains detailed information about * one cluster.

*/ inline DescribeCacheClustersResult& WithCacheClusters(const Aws::Vector& value) { SetCacheClusters(value); return *this;} /** *

A list of clusters. Each item in the list contains detailed information about * one cluster.

*/ inline DescribeCacheClustersResult& WithCacheClusters(Aws::Vector&& value) { SetCacheClusters(std::move(value)); return *this;} /** *

A list of clusters. Each item in the list contains detailed information about * one cluster.

*/ inline DescribeCacheClustersResult& AddCacheClusters(const CacheCluster& value) { m_cacheClusters.push_back(value); return *this; } /** *

A list of clusters. Each item in the list contains detailed information about * one cluster.

*/ inline DescribeCacheClustersResult& AddCacheClusters(CacheCluster&& value) { m_cacheClusters.push_back(std::move(value)); return *this; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline DescribeCacheClustersResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline DescribeCacheClustersResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_marker; Aws::Vector m_cacheClusters; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace ElastiCache } // namespace Aws