AWS SDK for C++  1.9.19
AWS SDK for C++
AddInstanceFleetRequest.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 "AddInstanceFleet"; }
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 AddInstanceFleetRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
67 
71  inline AddInstanceFleetRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
72 
76  inline AddInstanceFleetRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
77 
78 
82  inline const InstanceFleetConfig& GetInstanceFleet() const{ return m_instanceFleet; }
83 
87  inline bool InstanceFleetHasBeenSet() const { return m_instanceFleetHasBeenSet; }
88 
92  inline void SetInstanceFleet(const InstanceFleetConfig& value) { m_instanceFleetHasBeenSet = true; m_instanceFleet = value; }
93 
97  inline void SetInstanceFleet(InstanceFleetConfig&& value) { m_instanceFleetHasBeenSet = true; m_instanceFleet = std::move(value); }
98 
102  inline AddInstanceFleetRequest& WithInstanceFleet(const InstanceFleetConfig& value) { SetInstanceFleet(value); return *this;}
103 
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
Aws::EMR::Model::AddInstanceFleetRequest::AddInstanceFleetRequest
AddInstanceFleetRequest()
Aws::EMR::Model::AddInstanceFleetRequest::SetInstanceFleet
void SetInstanceFleet(InstanceFleetConfig &&value)
Definition: AddInstanceFleetRequest.h:97
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::EMR::Model::AddInstanceFleetRequest::WithClusterId
AddInstanceFleetRequest & WithClusterId(Aws::String &&value)
Definition: AddInstanceFleetRequest.h:71
Aws::EMR::Model::AddInstanceFleetRequest::InstanceFleetHasBeenSet
bool InstanceFleetHasBeenSet() const
Definition: AddInstanceFleetRequest.h:87
EMR_EXPORTS.h
Aws::EMR::Model::AddInstanceFleetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
EMRRequest.h
Aws::EMR::Model::AddInstanceFleetRequest::SetClusterId
void SetClusterId(const char *value)
Definition: AddInstanceFleetRequest.h:61
Aws::EMR::Model::AddInstanceFleetRequest::ClusterIdHasBeenSet
bool ClusterIdHasBeenSet() const
Definition: AddInstanceFleetRequest.h:46
Aws::EMR::Model::AddInstanceFleetRequest::SetClusterId
void SetClusterId(Aws::String &&value)
Definition: AddInstanceFleetRequest.h:56
Aws::EMR::Model::InstanceFleetConfig
Definition: InstanceFleetConfig.h:38
InstanceFleetConfig.h
Aws::EMR::Model::AddInstanceFleetRequest::WithInstanceFleet
AddInstanceFleetRequest & WithInstanceFleet(InstanceFleetConfig &&value)
Definition: AddInstanceFleetRequest.h:107
Aws::EMR::Model::AddInstanceFleetRequest::GetInstanceFleet
const InstanceFleetConfig & GetInstanceFleet() const
Definition: AddInstanceFleetRequest.h:82
Aws::EMR::EMRRequest
Definition: EMRRequest.h:17
Aws::EMR::Model::AddInstanceFleetRequest::WithClusterId
AddInstanceFleetRequest & WithClusterId(const Aws::String &value)
Definition: AddInstanceFleetRequest.h:66
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
AWSString.h
Aws::EMR::Model::AddInstanceFleetRequest::WithClusterId
AddInstanceFleetRequest & WithClusterId(const char *value)
Definition: AddInstanceFleetRequest.h:76
Aws::EMR::Model::AddInstanceFleetRequest::GetClusterId
const Aws::String & GetClusterId() const
Definition: AddInstanceFleetRequest.h:41
Aws::EMR::Model::AddInstanceFleetRequest::WithInstanceFleet
AddInstanceFleetRequest & WithInstanceFleet(const InstanceFleetConfig &value)
Definition: AddInstanceFleetRequest.h:102
Aws::EMR::Model::AddInstanceFleetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddInstanceFleetRequest.h:31
Aws::EMR::Model::AddInstanceFleetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EMR::Model::AddInstanceFleetRequest::SetClusterId
void SetClusterId(const Aws::String &value)
Definition: AddInstanceFleetRequest.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::AddInstanceFleetRequest
Definition: AddInstanceFleetRequest.h:23
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::AddInstanceFleetRequest::SetInstanceFleet
void SetInstanceFleet(const InstanceFleetConfig &value)
Definition: AddInstanceFleetRequest.h:92
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28