1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/elasticmapreduce/EMR_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/elasticmapreduce/model/InstanceFleet.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 template<typename RESULT_TYPE> 16 class AmazonWebServiceResult; 17 18 namespace Utils 19 { 20 namespace Json 21 { 22 class JsonValue; 23 } // namespace Json 24 } // namespace Utils 25 namespace EMR 26 { 27 namespace Model 28 { 29 class AWS_EMR_API ListInstanceFleetsResult 30 { 31 public: 32 ListInstanceFleetsResult(); 33 ListInstanceFleetsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 ListInstanceFleetsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p>The list of instance fleets for the cluster and given filters.</p> 39 */ GetInstanceFleets()40 inline const Aws::Vector<InstanceFleet>& GetInstanceFleets() const{ return m_instanceFleets; } 41 42 /** 43 * <p>The list of instance fleets for the cluster and given filters.</p> 44 */ SetInstanceFleets(const Aws::Vector<InstanceFleet> & value)45 inline void SetInstanceFleets(const Aws::Vector<InstanceFleet>& value) { m_instanceFleets = value; } 46 47 /** 48 * <p>The list of instance fleets for the cluster and given filters.</p> 49 */ SetInstanceFleets(Aws::Vector<InstanceFleet> && value)50 inline void SetInstanceFleets(Aws::Vector<InstanceFleet>&& value) { m_instanceFleets = std::move(value); } 51 52 /** 53 * <p>The list of instance fleets for the cluster and given filters.</p> 54 */ WithInstanceFleets(const Aws::Vector<InstanceFleet> & value)55 inline ListInstanceFleetsResult& WithInstanceFleets(const Aws::Vector<InstanceFleet>& value) { SetInstanceFleets(value); return *this;} 56 57 /** 58 * <p>The list of instance fleets for the cluster and given filters.</p> 59 */ WithInstanceFleets(Aws::Vector<InstanceFleet> && value)60 inline ListInstanceFleetsResult& WithInstanceFleets(Aws::Vector<InstanceFleet>&& value) { SetInstanceFleets(std::move(value)); return *this;} 61 62 /** 63 * <p>The list of instance fleets for the cluster and given filters.</p> 64 */ AddInstanceFleets(const InstanceFleet & value)65 inline ListInstanceFleetsResult& AddInstanceFleets(const InstanceFleet& value) { m_instanceFleets.push_back(value); return *this; } 66 67 /** 68 * <p>The list of instance fleets for the cluster and given filters.</p> 69 */ AddInstanceFleets(InstanceFleet && value)70 inline ListInstanceFleetsResult& AddInstanceFleets(InstanceFleet&& value) { m_instanceFleets.push_back(std::move(value)); return *this; } 71 72 73 /** 74 * <p>The pagination token that indicates the next set of results to retrieve.</p> 75 */ GetMarker()76 inline const Aws::String& GetMarker() const{ return m_marker; } 77 78 /** 79 * <p>The pagination token that indicates the next set of results to retrieve.</p> 80 */ SetMarker(const Aws::String & value)81 inline void SetMarker(const Aws::String& value) { m_marker = value; } 82 83 /** 84 * <p>The pagination token that indicates the next set of results to retrieve.</p> 85 */ SetMarker(Aws::String && value)86 inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); } 87 88 /** 89 * <p>The pagination token that indicates the next set of results to retrieve.</p> 90 */ SetMarker(const char * value)91 inline void SetMarker(const char* value) { m_marker.assign(value); } 92 93 /** 94 * <p>The pagination token that indicates the next set of results to retrieve.</p> 95 */ WithMarker(const Aws::String & value)96 inline ListInstanceFleetsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} 97 98 /** 99 * <p>The pagination token that indicates the next set of results to retrieve.</p> 100 */ WithMarker(Aws::String && value)101 inline ListInstanceFleetsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} 102 103 /** 104 * <p>The pagination token that indicates the next set of results to retrieve.</p> 105 */ WithMarker(const char * value)106 inline ListInstanceFleetsResult& WithMarker(const char* value) { SetMarker(value); return *this;} 107 108 private: 109 110 Aws::Vector<InstanceFleet> m_instanceFleets; 111 112 Aws::String m_marker; 113 }; 114 115 } // namespace Model 116 } // namespace EMR 117 } // namespace Aws 118