AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyInstanceGroupsRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticmapreduce/model/InstanceGroupModifyConfig.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 "ModifyInstanceGroups"; }
36
37 AWS_EMR_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetClusterId() const{ return m_clusterId; }
47 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
48 inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
49 inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
50 inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
51 inline ModifyInstanceGroupsRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
52 inline ModifyInstanceGroupsRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
53 inline ModifyInstanceGroupsRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
55
57
60 inline const Aws::Vector<InstanceGroupModifyConfig>& GetInstanceGroups() const{ return m_instanceGroups; }
61 inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; }
62 inline void SetInstanceGroups(const Aws::Vector<InstanceGroupModifyConfig>& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = value; }
63 inline void SetInstanceGroups(Aws::Vector<InstanceGroupModifyConfig>&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::move(value); }
66 inline ModifyInstanceGroupsRequest& AddInstanceGroups(const InstanceGroupModifyConfig& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(value); return *this; }
67 inline ModifyInstanceGroupsRequest& AddInstanceGroups(InstanceGroupModifyConfig&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(std::move(value)); return *this; }
69 private:
70
71 Aws::String m_clusterId;
72 bool m_clusterIdHasBeenSet = false;
73
75 bool m_instanceGroupsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EMR
80} // namespace Aws
ModifyInstanceGroupsRequest & WithClusterId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< InstanceGroupModifyConfig > & GetInstanceGroups() const
ModifyInstanceGroupsRequest & WithClusterId(Aws::String &&value)
ModifyInstanceGroupsRequest & WithClusterId(const char *value)
ModifyInstanceGroupsRequest & AddInstanceGroups(InstanceGroupModifyConfig &&value)
ModifyInstanceGroupsRequest & AddInstanceGroups(const InstanceGroupModifyConfig &value)
ModifyInstanceGroupsRequest & WithInstanceGroups(Aws::Vector< InstanceGroupModifyConfig > &&value)
void SetInstanceGroups(const Aws::Vector< InstanceGroupModifyConfig > &value)
void SetInstanceGroups(Aws::Vector< InstanceGroupModifyConfig > &&value)
AWS_EMR_API Aws::String SerializePayload() const override
ModifyInstanceGroupsRequest & WithInstanceGroups(const Aws::Vector< InstanceGroupModifyConfig > &value)
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