150 lines
5.0 KiB
C++
150 lines
5.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/elasticache/ElastiCache_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/elasticache/model/ResponseMetadata.h>
|
|
#include <aws/elasticache/model/CacheCluster.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
class AmazonWebServiceResult;
|
|
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlDocument;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace ElastiCache
|
|
{
|
|
namespace Model
|
|
{
|
|
/**
|
|
* <p>Represents the output of a <code>DescribeCacheClusters</code>
|
|
* operation.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CacheClusterMessage">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_ELASTICACHE_API DescribeCacheClustersResult
|
|
{
|
|
public:
|
|
DescribeCacheClustersResult();
|
|
DescribeCacheClustersResult(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
|
|
DescribeCacheClustersResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
|
|
|
|
|
|
/**
|
|
* <p>Provides an identifier to allow retrieval of paginated results.</p>
|
|
*/
|
|
inline const Aws::String& GetMarker() const{ return m_marker; }
|
|
|
|
/**
|
|
* <p>Provides an identifier to allow retrieval of paginated results.</p>
|
|
*/
|
|
inline void SetMarker(const Aws::String& value) { m_marker = value; }
|
|
|
|
/**
|
|
* <p>Provides an identifier to allow retrieval of paginated results.</p>
|
|
*/
|
|
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
|
|
|
|
/**
|
|
* <p>Provides an identifier to allow retrieval of paginated results.</p>
|
|
*/
|
|
inline void SetMarker(const char* value) { m_marker.assign(value); }
|
|
|
|
/**
|
|
* <p>Provides an identifier to allow retrieval of paginated results.</p>
|
|
*/
|
|
inline DescribeCacheClustersResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
|
|
|
|
/**
|
|
* <p>Provides an identifier to allow retrieval of paginated results.</p>
|
|
*/
|
|
inline DescribeCacheClustersResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Provides an identifier to allow retrieval of paginated results.</p>
|
|
*/
|
|
inline DescribeCacheClustersResult& WithMarker(const char* value) { SetMarker(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A list of clusters. Each item in the list contains detailed information about
|
|
* one cluster.</p>
|
|
*/
|
|
inline const Aws::Vector<CacheCluster>& GetCacheClusters() const{ return m_cacheClusters; }
|
|
|
|
/**
|
|
* <p>A list of clusters. Each item in the list contains detailed information about
|
|
* one cluster.</p>
|
|
*/
|
|
inline void SetCacheClusters(const Aws::Vector<CacheCluster>& value) { m_cacheClusters = value; }
|
|
|
|
/**
|
|
* <p>A list of clusters. Each item in the list contains detailed information about
|
|
* one cluster.</p>
|
|
*/
|
|
inline void SetCacheClusters(Aws::Vector<CacheCluster>&& value) { m_cacheClusters = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of clusters. Each item in the list contains detailed information about
|
|
* one cluster.</p>
|
|
*/
|
|
inline DescribeCacheClustersResult& WithCacheClusters(const Aws::Vector<CacheCluster>& value) { SetCacheClusters(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of clusters. Each item in the list contains detailed information about
|
|
* one cluster.</p>
|
|
*/
|
|
inline DescribeCacheClustersResult& WithCacheClusters(Aws::Vector<CacheCluster>&& value) { SetCacheClusters(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of clusters. Each item in the list contains detailed information about
|
|
* one cluster.</p>
|
|
*/
|
|
inline DescribeCacheClustersResult& AddCacheClusters(const CacheCluster& value) { m_cacheClusters.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of clusters. Each item in the list contains detailed information about
|
|
* one cluster.</p>
|
|
*/
|
|
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<CacheCluster> m_cacheClusters;
|
|
|
|
ResponseMetadata m_responseMetadata;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace ElastiCache
|
|
} // namespace Aws
|