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/elasticmapreduce/EMRRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/elasticmapreduce/model/InstanceFleetConfig.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace EMR 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_EMR_API AddInstanceFleetRequest : public EMRRequest 23 { 24 public: 25 AddInstanceFleetRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "AddInstanceFleet"; } 32 33 Aws::String SerializePayload() const override; 34 35 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 36 37 38 /** 39 * <p>The unique identifier of the cluster.</p> 40 */ GetClusterId()41 inline const Aws::String& GetClusterId() const{ return m_clusterId; } 42 43 /** 44 * <p>The unique identifier of the cluster.</p> 45 */ ClusterIdHasBeenSet()46 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; } 47 48 /** 49 * <p>The unique identifier of the cluster.</p> 50 */ SetClusterId(const Aws::String & value)51 inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; } 52 53 /** 54 * <p>The unique identifier of the cluster.</p> 55 */ SetClusterId(Aws::String && value)56 inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); } 57 58 /** 59 * <p>The unique identifier of the cluster.</p> 60 */ SetClusterId(const char * value)61 inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); } 62 63 /** 64 * <p>The unique identifier of the cluster.</p> 65 */ WithClusterId(const Aws::String & value)66 inline AddInstanceFleetRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;} 67 68 /** 69 * <p>The unique identifier of the cluster.</p> 70 */ WithClusterId(Aws::String && value)71 inline AddInstanceFleetRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;} 72 73 /** 74 * <p>The unique identifier of the cluster.</p> 75 */ WithClusterId(const char * value)76 inline AddInstanceFleetRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;} 77 78 79 /** 80 * <p>Specifies the configuration of the instance fleet.</p> 81 */ GetInstanceFleet()82 inline const InstanceFleetConfig& GetInstanceFleet() const{ return m_instanceFleet; } 83 84 /** 85 * <p>Specifies the configuration of the instance fleet.</p> 86 */ InstanceFleetHasBeenSet()87 inline bool InstanceFleetHasBeenSet() const { return m_instanceFleetHasBeenSet; } 88 89 /** 90 * <p>Specifies the configuration of the instance fleet.</p> 91 */ SetInstanceFleet(const InstanceFleetConfig & value)92 inline void SetInstanceFleet(const InstanceFleetConfig& value) { m_instanceFleetHasBeenSet = true; m_instanceFleet = value; } 93 94 /** 95 * <p>Specifies the configuration of the instance fleet.</p> 96 */ SetInstanceFleet(InstanceFleetConfig && value)97 inline void SetInstanceFleet(InstanceFleetConfig&& value) { m_instanceFleetHasBeenSet = true; m_instanceFleet = std::move(value); } 98 99 /** 100 * <p>Specifies the configuration of the instance fleet.</p> 101 */ WithInstanceFleet(const InstanceFleetConfig & value)102 inline AddInstanceFleetRequest& WithInstanceFleet(const InstanceFleetConfig& value) { SetInstanceFleet(value); return *this;} 103 104 /** 105 * <p>Specifies the configuration of the instance fleet.</p> 106 */ WithInstanceFleet(InstanceFleetConfig && value)107 inline AddInstanceFleetRequest& WithInstanceFleet(InstanceFleetConfig&& value) { SetInstanceFleet(std::move(value)); return *this;} 108 109 private: 110 111 Aws::String m_clusterId; 112 bool m_clusterIdHasBeenSet; 113 114 InstanceFleetConfig m_instanceFleet; 115 bool m_instanceFleetHasBeenSet; 116 }; 117 118 } // namespace Model 119 } // namespace EMR 120 } // namespace Aws 121