AWS SDK for C++  1.9.20
AWS SDK for C++
ModifyInstanceGroupsRequest.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 "ModifyInstanceGroups"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetClusterId() const{ return m_clusterId; }
46 
50  inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
51 
55  inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
56 
60  inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
61 
65  inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
66 
70  inline ModifyInstanceGroupsRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
71 
75  inline ModifyInstanceGroupsRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
76 
80  inline ModifyInstanceGroupsRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
81 
82 
86  inline const Aws::Vector<InstanceGroupModifyConfig>& GetInstanceGroups() const{ return m_instanceGroups; }
87 
91  inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; }
92 
96  inline void SetInstanceGroups(const Aws::Vector<InstanceGroupModifyConfig>& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = value; }
97 
101  inline void SetInstanceGroups(Aws::Vector<InstanceGroupModifyConfig>&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::move(value); }
102 
106  inline ModifyInstanceGroupsRequest& WithInstanceGroups(const Aws::Vector<InstanceGroupModifyConfig>& value) { SetInstanceGroups(value); return *this;}
107 
111  inline ModifyInstanceGroupsRequest& WithInstanceGroups(Aws::Vector<InstanceGroupModifyConfig>&& value) { SetInstanceGroups(std::move(value)); return *this;}
112 
116  inline ModifyInstanceGroupsRequest& AddInstanceGroups(const InstanceGroupModifyConfig& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(value); return *this; }
117 
121  inline ModifyInstanceGroupsRequest& AddInstanceGroups(InstanceGroupModifyConfig&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(std::move(value)); return *this; }
122 
123  private:
124 
125  Aws::String m_clusterId;
126  bool m_clusterIdHasBeenSet;
127 
129  bool m_instanceGroupsHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace EMR
134 } // namespace Aws
Aws::EMR::Model::ModifyInstanceGroupsRequest::AddInstanceGroups
ModifyInstanceGroupsRequest & AddInstanceGroups(const InstanceGroupModifyConfig &value)
Definition: ModifyInstanceGroupsRequest.h:116
Aws::EMR::Model::ModifyInstanceGroupsRequest::SetClusterId
void SetClusterId(Aws::String &&value)
Definition: ModifyInstanceGroupsRequest.h:60
Aws::EMR::Model::ModifyInstanceGroupsRequest::AddInstanceGroups
ModifyInstanceGroupsRequest & AddInstanceGroups(InstanceGroupModifyConfig &&value)
Definition: ModifyInstanceGroupsRequest.h:121
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::EMR::Model::ModifyInstanceGroupsRequest::WithClusterId
ModifyInstanceGroupsRequest & WithClusterId(const Aws::String &value)
Definition: ModifyInstanceGroupsRequest.h:70
Aws::EMR::Model::ModifyInstanceGroupsRequest::ClusterIdHasBeenSet
bool ClusterIdHasBeenSet() const
Definition: ModifyInstanceGroupsRequest.h:50
EMR_EXPORTS.h
EMRRequest.h
Aws::EMR::Model::ModifyInstanceGroupsRequest::WithInstanceGroups
ModifyInstanceGroupsRequest & WithInstanceGroups(Aws::Vector< InstanceGroupModifyConfig > &&value)
Definition: ModifyInstanceGroupsRequest.h:111
Aws::EMR::Model::ModifyInstanceGroupsRequest::SetInstanceGroups
void SetInstanceGroups(const Aws::Vector< InstanceGroupModifyConfig > &value)
Definition: ModifyInstanceGroupsRequest.h:96
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::ModifyInstanceGroupsRequest::InstanceGroupsHasBeenSet
bool InstanceGroupsHasBeenSet() const
Definition: ModifyInstanceGroupsRequest.h:91
AWSVector.h
Aws::EMR::Model::ModifyInstanceGroupsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::EMR::Model::ModifyInstanceGroupsRequest::SetClusterId
void SetClusterId(const Aws::String &value)
Definition: ModifyInstanceGroupsRequest.h:55
Aws::EMR::Model::ModifyInstanceGroupsRequest
Definition: ModifyInstanceGroupsRequest.h:27
Aws::EMR::Model::InstanceGroupModifyConfig
Definition: InstanceGroupModifyConfig.h:36
Aws::EMR::EMRRequest
Definition: EMRRequest.h:17
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
AWSString.h
InstanceGroupModifyConfig.h
Aws::EMR::Model::ModifyInstanceGroupsRequest::WithInstanceGroups
ModifyInstanceGroupsRequest & WithInstanceGroups(const Aws::Vector< InstanceGroupModifyConfig > &value)
Definition: ModifyInstanceGroupsRequest.h:106
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::ModifyInstanceGroupsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EMR::Model::ModifyInstanceGroupsRequest::ModifyInstanceGroupsRequest
ModifyInstanceGroupsRequest()
Aws::EMR::Model::ModifyInstanceGroupsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyInstanceGroupsRequest.h:35
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::ModifyInstanceGroupsRequest::SetInstanceGroups
void SetInstanceGroups(Aws::Vector< InstanceGroupModifyConfig > &&value)
Definition: ModifyInstanceGroupsRequest.h:101
Aws::EMR::Model::ModifyInstanceGroupsRequest::GetInstanceGroups
const Aws::Vector< InstanceGroupModifyConfig > & GetInstanceGroups() const
Definition: ModifyInstanceGroupsRequest.h:86
Aws::EMR::Model::ModifyInstanceGroupsRequest::SetClusterId
void SetClusterId(const char *value)
Definition: ModifyInstanceGroupsRequest.h:65
Aws::EMR::Model::ModifyInstanceGroupsRequest::WithClusterId
ModifyInstanceGroupsRequest & WithClusterId(const char *value)
Definition: ModifyInstanceGroupsRequest.h:80
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::ModifyInstanceGroupsRequest::WithClusterId
ModifyInstanceGroupsRequest & WithClusterId(Aws::String &&value)
Definition: ModifyInstanceGroupsRequest.h:75
Aws::EMR::Model::ModifyInstanceGroupsRequest::GetClusterId
const Aws::String & GetClusterId() const
Definition: ModifyInstanceGroupsRequest.h:45