/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace EMR { namespace Model { /** *

This contains a ClusterSummaryList with the cluster details; for example, the * cluster IDs, names, and status.

See Also:

AWS * API Reference

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

The list of clusters for the account based on the given filters.

*/ inline const Aws::Vector& GetClusters() const{ return m_clusters; } /** *

The list of clusters for the account based on the given filters.

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

The list of clusters for the account based on the given filters.

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

The list of clusters for the account based on the given filters.

*/ inline ListClustersResult& WithClusters(const Aws::Vector& value) { SetClusters(value); return *this;} /** *

The list of clusters for the account based on the given filters.

*/ inline ListClustersResult& WithClusters(Aws::Vector&& value) { SetClusters(std::move(value)); return *this;} /** *

The list of clusters for the account based on the given filters.

*/ inline ListClustersResult& AddClusters(const ClusterSummary& value) { m_clusters.push_back(value); return *this; } /** *

The list of clusters for the account based on the given filters.

*/ inline ListClustersResult& AddClusters(ClusterSummary&& value) { m_clusters.push_back(std::move(value)); return *this; } /** *

The pagination token that indicates the next set of results to retrieve.

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

The pagination token that indicates the next set of results to retrieve.

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

The pagination token that indicates the next set of results to retrieve.

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

The pagination token that indicates the next set of results to retrieve.

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

The pagination token that indicates the next set of results to retrieve.

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

The pagination token that indicates the next set of results to retrieve.

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

The pagination token that indicates the next set of results to retrieve.

*/ inline ListClustersResult& WithMarker(const char* value) { SetMarker(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ListClustersResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListClustersResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListClustersResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_clusters; Aws::String m_marker; Aws::String m_requestId; }; } // namespace Model } // namespace EMR } // namespace Aws