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/InstanceFleetModifyConfig.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 ModifyInstanceFleetRequest : public EMRRequest
23   {
24   public:
25     ModifyInstanceFleetRequest();
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 "ModifyInstanceFleet"; }
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 ModifyInstanceFleetRequest& 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 ModifyInstanceFleetRequest& 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 ModifyInstanceFleetRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
77 
78 
79     /**
80      * <p>The configuration parameters of the instance fleet.</p>
81      */
GetInstanceFleet()82     inline const InstanceFleetModifyConfig& GetInstanceFleet() const{ return m_instanceFleet; }
83 
84     /**
85      * <p>The configuration parameters of the instance fleet.</p>
86      */
InstanceFleetHasBeenSet()87     inline bool InstanceFleetHasBeenSet() const { return m_instanceFleetHasBeenSet; }
88 
89     /**
90      * <p>The configuration parameters of the instance fleet.</p>
91      */
SetInstanceFleet(const InstanceFleetModifyConfig & value)92     inline void SetInstanceFleet(const InstanceFleetModifyConfig& value) { m_instanceFleetHasBeenSet = true; m_instanceFleet = value; }
93 
94     /**
95      * <p>The configuration parameters of the instance fleet.</p>
96      */
SetInstanceFleet(InstanceFleetModifyConfig && value)97     inline void SetInstanceFleet(InstanceFleetModifyConfig&& value) { m_instanceFleetHasBeenSet = true; m_instanceFleet = std::move(value); }
98 
99     /**
100      * <p>The configuration parameters of the instance fleet.</p>
101      */
WithInstanceFleet(const InstanceFleetModifyConfig & value)102     inline ModifyInstanceFleetRequest& WithInstanceFleet(const InstanceFleetModifyConfig& value) { SetInstanceFleet(value); return *this;}
103 
104     /**
105      * <p>The configuration parameters of the instance fleet.</p>
106      */
WithInstanceFleet(InstanceFleetModifyConfig && value)107     inline ModifyInstanceFleetRequest& WithInstanceFleet(InstanceFleetModifyConfig&& value) { SetInstanceFleet(std::move(value)); return *this;}
108 
109   private:
110 
111     Aws::String m_clusterId;
112     bool m_clusterIdHasBeenSet;
113 
114     InstanceFleetModifyConfig m_instanceFleet;
115     bool m_instanceFleetHasBeenSet;
116   };
117 
118 } // namespace Model
119 } // namespace EMR
120 } // namespace Aws
121