AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddInstanceGroupsRequest.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/EMRRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/elasticmapreduce/model/InstanceGroupConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EMR
17{
18namespace 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_EMR_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::Vector<InstanceGroupConfig>& GetInstanceGroups() const{ return m_instanceGroups; }
47 inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; }
48 inline void SetInstanceGroups(const Aws::Vector<InstanceGroupConfig>& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = value; }
49 inline void SetInstanceGroups(Aws::Vector<InstanceGroupConfig>&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::move(value); }
52 inline AddInstanceGroupsRequest& AddInstanceGroups(const InstanceGroupConfig& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(value); return *this; }
53 inline AddInstanceGroupsRequest& AddInstanceGroups(InstanceGroupConfig&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(std::move(value)); return *this; }
55
57
60 inline const Aws::String& GetJobFlowId() const{ return m_jobFlowId; }
61 inline bool JobFlowIdHasBeenSet() const { return m_jobFlowIdHasBeenSet; }
62 inline void SetJobFlowId(const Aws::String& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = value; }
63 inline void SetJobFlowId(Aws::String&& value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId = std::move(value); }
64 inline void SetJobFlowId(const char* value) { m_jobFlowIdHasBeenSet = true; m_jobFlowId.assign(value); }
65 inline AddInstanceGroupsRequest& WithJobFlowId(const Aws::String& value) { SetJobFlowId(value); return *this;}
66 inline AddInstanceGroupsRequest& WithJobFlowId(Aws::String&& value) { SetJobFlowId(std::move(value)); return *this;}
67 inline AddInstanceGroupsRequest& WithJobFlowId(const char* value) { SetJobFlowId(value); return *this;}
69 private:
70
71 Aws::Vector<InstanceGroupConfig> m_instanceGroups;
72 bool m_instanceGroupsHasBeenSet = false;
73
74 Aws::String m_jobFlowId;
75 bool m_jobFlowIdHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EMR
80} // namespace Aws
AddInstanceGroupsRequest & WithJobFlowId(const char *value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AddInstanceGroupsRequest & WithInstanceGroups(Aws::Vector< InstanceGroupConfig > &&value)
virtual const char * GetServiceRequestName() const override
AddInstanceGroupsRequest & WithJobFlowId(const Aws::String &value)
AddInstanceGroupsRequest & AddInstanceGroups(const InstanceGroupConfig &value)
void SetInstanceGroups(Aws::Vector< InstanceGroupConfig > &&value)
AWS_EMR_API Aws::String SerializePayload() const override
AddInstanceGroupsRequest & AddInstanceGroups(InstanceGroupConfig &&value)
AddInstanceGroupsRequest & WithJobFlowId(Aws::String &&value)
void SetInstanceGroups(const Aws::Vector< InstanceGroupConfig > &value)
AddInstanceGroupsRequest & WithInstanceGroups(const Aws::Vector< InstanceGroupConfig > &value)
const Aws::Vector< InstanceGroupConfig > & GetInstanceGroups() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector