AWS SDK for C++  1.9.161
AWS SDK for C++
AddInstanceGroupsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EMR
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "AddInstanceGroups"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::Vector<InstanceGroupConfig>& GetInstanceGroups() const{ return m_instanceGroups; }
46 
50  inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; }
51 
55  inline void SetInstanceGroups(const Aws::Vector<InstanceGroupConfig>& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = value; }
56 
60  inline void SetInstanceGroups(Aws::Vector<InstanceGroupConfig>&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::move(value); }
61 
65  inline AddInstanceGroupsRequest& WithInstanceGroups(const Aws::Vector<InstanceGroupConfig>& value) { SetInstanceGroups(value); return *this;}
66 
70  inline AddInstanceGroupsRequest& WithInstanceGroups(Aws::Vector<InstanceGroupConfig>&& value) { SetInstanceGroups(std::move(value)); return *this;}
71 
75  inline AddInstanceGroupsRequest& AddInstanceGroups(const InstanceGroupConfig& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(value); return *this; }
76 
80  inline AddInstanceGroupsRequest& AddInstanceGroups(InstanceGroupConfig&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(std::move(value)); return *this; }
81 
82 
86  inline const Aws::String& GetJobFlowId() const{ return m_jobFlowId; }
87 
91  inline bool JobFlowIdHasBeenSet() const { return m_jobFlowIdHasBeenSet; }
92 
96  inline void SetJobFlowId(const Aws::String& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = value; }
97 
101  inline void SetJobFlowId(Aws::String&& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = std::move(value); }
102 
106  inline void SetJobFlowId(const char* value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId.assign(value); }
107 
111  inline AddInstanceGroupsRequest& WithJobFlowId(const Aws::String& value) { SetJobFlowId(value); return *this;}
112 
116  inline AddInstanceGroupsRequest& WithJobFlowId(Aws::String&& value) { SetJobFlowId(std::move(value)); return *this;}
117 
121  inline AddInstanceGroupsRequest& WithJobFlowId(const char* value) { SetJobFlowId(value); return *this;}
122 
123  private:
124 
125  Aws::Vector<InstanceGroupConfig> m_instanceGroups;
126  bool m_instanceGroupsHasBeenSet;
127 
128  Aws::String m_jobFlowId;
129  bool m_jobFlowIdHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace EMR
134 } // namespace Aws
Aws::EMR::Model::AddInstanceGroupsRequest::WithInstanceGroups
AddInstanceGroupsRequest & WithInstanceGroups(Aws::Vector< InstanceGroupConfig > &&value)
Definition: AddInstanceGroupsRequest.h:70
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
EMR_EXPORTS.h
EMRRequest.h
Aws::EMR::Model::AddInstanceGroupsRequest::SetInstanceGroups
void SetInstanceGroups(Aws::Vector< InstanceGroupConfig > &&value)
Definition: AddInstanceGroupsRequest.h:60
Aws::EMR::Model::AddInstanceGroupsRequest::AddInstanceGroups
AddInstanceGroupsRequest & AddInstanceGroups(InstanceGroupConfig &&value)
Definition: AddInstanceGroupsRequest.h:80
Aws::EMR::Model::AddInstanceGroupsRequest::WithJobFlowId
AddInstanceGroupsRequest & WithJobFlowId(const char *value)
Definition: AddInstanceGroupsRequest.h:121
Aws::EMR::Model::AddInstanceGroupsRequest::AddInstanceGroupsRequest
AddInstanceGroupsRequest()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::AddInstanceGroupsRequest::SetJobFlowId
void SetJobFlowId(const char *value)
Definition: AddInstanceGroupsRequest.h:106
AWSVector.h
Aws::EMR::Model::AddInstanceGroupsRequest::GetInstanceGroups
const Aws::Vector< InstanceGroupConfig > & GetInstanceGroups() const
Definition: AddInstanceGroupsRequest.h:45
Aws::EMR::Model::AddInstanceGroupsRequest::WithInstanceGroups
AddInstanceGroupsRequest & WithInstanceGroups(const Aws::Vector< InstanceGroupConfig > &value)
Definition: AddInstanceGroupsRequest.h:65
Aws::EMR::Model::InstanceGroupConfig
Definition: InstanceGroupConfig.h:38
Aws::EMR::Model::AddInstanceGroupsRequest
Definition: AddInstanceGroupsRequest.h:27
Aws::EMR::Model::AddInstanceGroupsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::EMR::Model::AddInstanceGroupsRequest::AddInstanceGroups
AddInstanceGroupsRequest & AddInstanceGroups(const InstanceGroupConfig &value)
Definition: AddInstanceGroupsRequest.h:75
Aws::EMR::EMRRequest
Definition: EMRRequest.h:17
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::EMR::Model::AddInstanceGroupsRequest::GetJobFlowId
const Aws::String & GetJobFlowId() const
Definition: AddInstanceGroupsRequest.h:86
AWSString.h
Aws::EMR::Model::AddInstanceGroupsRequest::InstanceGroupsHasBeenSet
bool InstanceGroupsHasBeenSet() const
Definition: AddInstanceGroupsRequest.h:50
Aws::EMR::Model::AddInstanceGroupsRequest::SerializePayload
Aws::String SerializePayload() const override
InstanceGroupConfig.h
Aws::EMR::Model::AddInstanceGroupsRequest::WithJobFlowId
AddInstanceGroupsRequest & WithJobFlowId(Aws::String &&value)
Definition: AddInstanceGroupsRequest.h:116
Aws::EMR::Model::AddInstanceGroupsRequest::SetJobFlowId
void SetJobFlowId(Aws::String &&value)
Definition: AddInstanceGroupsRequest.h:101
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::AddInstanceGroupsRequest::WithJobFlowId
AddInstanceGroupsRequest & WithJobFlowId(const Aws::String &value)
Definition: AddInstanceGroupsRequest.h:111
Aws::EMR::Model::AddInstanceGroupsRequest::SetJobFlowId
void SetJobFlowId(const Aws::String &value)
Definition: AddInstanceGroupsRequest.h:96
Aws::EMR::Model::AddInstanceGroupsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddInstanceGroupsRequest.h:35
Aws::EMR::Model::AddInstanceGroupsRequest::JobFlowIdHasBeenSet
bool JobFlowIdHasBeenSet() const
Definition: AddInstanceGroupsRequest.h:91
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::AddInstanceGroupsRequest::SetInstanceGroups
void SetInstanceGroups(const Aws::Vector< InstanceGroupConfig > &value)
Definition: AddInstanceGroupsRequest.h:55