AWS SDK for C++  1.9.21
AWS SDK for C++
ModifyInstanceFleetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EMR
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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.
31  inline virtual const char* GetServiceRequestName() const override { return "ModifyInstanceFleet"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetClusterId() const{ return m_clusterId; }
42 
46  inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
47 
51  inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
52 
56  inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
57 
61  inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
62 
66  inline ModifyInstanceFleetRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
67 
71  inline ModifyInstanceFleetRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
72 
76  inline ModifyInstanceFleetRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
77 
78 
82  inline const InstanceFleetModifyConfig& GetInstanceFleet() const{ return m_instanceFleet; }
83 
87  inline bool InstanceFleetHasBeenSet() const { return m_instanceFleetHasBeenSet; }
88 
92  inline void SetInstanceFleet(const InstanceFleetModifyConfig& value) { m_instanceFleetHasBeenSet = true; m_instanceFleet = value; }
93 
97  inline void SetInstanceFleet(InstanceFleetModifyConfig&& value) { m_instanceFleetHasBeenSet = true; m_instanceFleet = std::move(value); }
98 
102  inline ModifyInstanceFleetRequest& WithInstanceFleet(const InstanceFleetModifyConfig& value) { SetInstanceFleet(value); return *this;}
103 
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
InstanceFleetModifyConfig.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
EMR_EXPORTS.h
EMRRequest.h
Aws::EMR::Model::ModifyInstanceFleetRequest::SetClusterId
void SetClusterId(Aws::String &&value)
Definition: ModifyInstanceFleetRequest.h:56
Aws::EMR::Model::ModifyInstanceFleetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyInstanceFleetRequest.h:31
Aws::EMR::Model::ModifyInstanceFleetRequest::ModifyInstanceFleetRequest
ModifyInstanceFleetRequest()
Aws::EMR::Model::ModifyInstanceFleetRequest::SetInstanceFleet
void SetInstanceFleet(InstanceFleetModifyConfig &&value)
Definition: ModifyInstanceFleetRequest.h:97
Aws::EMR::Model::ModifyInstanceFleetRequest::GetClusterId
const Aws::String & GetClusterId() const
Definition: ModifyInstanceFleetRequest.h:41
Aws::EMR::Model::ModifyInstanceFleetRequest::WithInstanceFleet
ModifyInstanceFleetRequest & WithInstanceFleet(const InstanceFleetModifyConfig &value)
Definition: ModifyInstanceFleetRequest.h:102
Aws::EMR::Model::ModifyInstanceFleetRequest::WithClusterId
ModifyInstanceFleetRequest & WithClusterId(const char *value)
Definition: ModifyInstanceFleetRequest.h:76
Aws::EMR::Model::ModifyInstanceFleetRequest::WithInstanceFleet
ModifyInstanceFleetRequest & WithInstanceFleet(InstanceFleetModifyConfig &&value)
Definition: ModifyInstanceFleetRequest.h:107
Aws::EMR::EMRRequest
Definition: EMRRequest.h:17
Aws::EMR::Model::ModifyInstanceFleetRequest::SetInstanceFleet
void SetInstanceFleet(const InstanceFleetModifyConfig &value)
Definition: ModifyInstanceFleetRequest.h:92
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
AWSString.h
Aws::EMR::Model::ModifyInstanceFleetRequest::InstanceFleetHasBeenSet
bool InstanceFleetHasBeenSet() const
Definition: ModifyInstanceFleetRequest.h:87
Aws::EMR::Model::ModifyInstanceFleetRequest
Definition: ModifyInstanceFleetRequest.h:23
Aws::EMR::Model::ModifyInstanceFleetRequest::ClusterIdHasBeenSet
bool ClusterIdHasBeenSet() const
Definition: ModifyInstanceFleetRequest.h:46
Aws::EMR::Model::ModifyInstanceFleetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::EMR::Model::ModifyInstanceFleetRequest::WithClusterId
ModifyInstanceFleetRequest & WithClusterId(const Aws::String &value)
Definition: ModifyInstanceFleetRequest.h:66
Aws::EMR::Model::InstanceFleetModifyConfig
Definition: InstanceFleetModifyConfig.h:35
Aws::EMR::Model::ModifyInstanceFleetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EMR::Model::ModifyInstanceFleetRequest::SetClusterId
void SetClusterId(const Aws::String &value)
Definition: ModifyInstanceFleetRequest.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::ModifyInstanceFleetRequest::WithClusterId
ModifyInstanceFleetRequest & WithClusterId(Aws::String &&value)
Definition: ModifyInstanceFleetRequest.h:71
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::ModifyInstanceFleetRequest::SetClusterId
void SetClusterId(const char *value)
Definition: ModifyInstanceFleetRequest.h:61
Aws::EMR::Model::ModifyInstanceFleetRequest::GetInstanceFleet
const InstanceFleetModifyConfig & GetInstanceFleet() const
Definition: ModifyInstanceFleetRequest.h:82