/** * 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 input determines which instance groups to retrieve.

See * Also:

AWS * API Reference

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

The list of instance groups for the cluster and given filters.

*/ inline const Aws::Vector& GetInstanceGroups() const{ return m_instanceGroups; } /** *

The list of instance groups for the cluster and given filters.

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

The list of instance groups for the cluster and given filters.

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

The list of instance groups for the cluster and given filters.

*/ inline ListInstanceGroupsResult& WithInstanceGroups(const Aws::Vector& value) { SetInstanceGroups(value); return *this;} /** *

The list of instance groups for the cluster and given filters.

*/ inline ListInstanceGroupsResult& WithInstanceGroups(Aws::Vector&& value) { SetInstanceGroups(std::move(value)); return *this;} /** *

The list of instance groups for the cluster and given filters.

*/ inline ListInstanceGroupsResult& AddInstanceGroups(const InstanceGroup& value) { m_instanceGroups.push_back(value); return *this; } /** *

The list of instance groups for the cluster and given filters.

*/ inline ListInstanceGroupsResult& AddInstanceGroups(InstanceGroup&& value) { m_instanceGroups.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 ListInstanceGroupsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

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

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

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

*/ inline ListInstanceGroupsResult& 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 ListInstanceGroupsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListInstanceGroupsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListInstanceGroupsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_instanceGroups; Aws::String m_marker; Aws::String m_requestId; }; } // namespace Model } // namespace EMR } // namespace Aws