AWS SDK for C++  1.9.20
AWS SDK for C++
PutAutoScalingPolicyRequest.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 "PutAutoScalingPolicy"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetClusterId() const{ return m_clusterId; }
43 
48  inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
49 
54  inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
55 
60  inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
61 
66  inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
67 
72  inline PutAutoScalingPolicyRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
73 
78  inline PutAutoScalingPolicyRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
79 
84  inline PutAutoScalingPolicyRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
85 
86 
91  inline const Aws::String& GetInstanceGroupId() const{ return m_instanceGroupId; }
92 
97  inline bool InstanceGroupIdHasBeenSet() const { return m_instanceGroupIdHasBeenSet; }
98 
103  inline void SetInstanceGroupId(const Aws::String& value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId = value; }
104 
109  inline void SetInstanceGroupId(Aws::String&& value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId = std::move(value); }
110 
115  inline void SetInstanceGroupId(const char* value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId.assign(value); }
116 
121  inline PutAutoScalingPolicyRequest& WithInstanceGroupId(const Aws::String& value) { SetInstanceGroupId(value); return *this;}
122 
127  inline PutAutoScalingPolicyRequest& WithInstanceGroupId(Aws::String&& value) { SetInstanceGroupId(std::move(value)); return *this;}
128 
133  inline PutAutoScalingPolicyRequest& WithInstanceGroupId(const char* value) { SetInstanceGroupId(value); return *this;}
134 
135 
139  inline const AutoScalingPolicy& GetAutoScalingPolicy() const{ return m_autoScalingPolicy; }
140 
144  inline bool AutoScalingPolicyHasBeenSet() const { return m_autoScalingPolicyHasBeenSet; }
145 
149  inline void SetAutoScalingPolicy(const AutoScalingPolicy& value) { m_autoScalingPolicyHasBeenSet = true; m_autoScalingPolicy = value; }
150 
154  inline void SetAutoScalingPolicy(AutoScalingPolicy&& value) { m_autoScalingPolicyHasBeenSet = true; m_autoScalingPolicy = std::move(value); }
155 
159  inline PutAutoScalingPolicyRequest& WithAutoScalingPolicy(const AutoScalingPolicy& value) { SetAutoScalingPolicy(value); return *this;}
160 
164  inline PutAutoScalingPolicyRequest& WithAutoScalingPolicy(AutoScalingPolicy&& value) { SetAutoScalingPolicy(std::move(value)); return *this;}
165 
166  private:
167 
168  Aws::String m_clusterId;
169  bool m_clusterIdHasBeenSet;
170 
171  Aws::String m_instanceGroupId;
172  bool m_instanceGroupIdHasBeenSet;
173 
174  AutoScalingPolicy m_autoScalingPolicy;
175  bool m_autoScalingPolicyHasBeenSet;
176  };
177 
178 } // namespace Model
179 } // namespace EMR
180 } // namespace Aws
Aws::EMR::Model::PutAutoScalingPolicyRequest::SetInstanceGroupId
void SetInstanceGroupId(const Aws::String &value)
Definition: PutAutoScalingPolicyRequest.h:103
Aws::EMR::Model::PutAutoScalingPolicyRequest::SetClusterId
void SetClusterId(const char *value)
Definition: PutAutoScalingPolicyRequest.h:66
Aws::EMR::Model::PutAutoScalingPolicyRequest::WithClusterId
PutAutoScalingPolicyRequest & WithClusterId(const char *value)
Definition: PutAutoScalingPolicyRequest.h:84
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::EMR::Model::PutAutoScalingPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
EMR_EXPORTS.h
EMRRequest.h
Aws::EMR::Model::PutAutoScalingPolicyRequest::SetClusterId
void SetClusterId(Aws::String &&value)
Definition: PutAutoScalingPolicyRequest.h:60
Aws::EMR::Model::PutAutoScalingPolicyRequest::ClusterIdHasBeenSet
bool ClusterIdHasBeenSet() const
Definition: PutAutoScalingPolicyRequest.h:48
Aws::EMR::Model::PutAutoScalingPolicyRequest::SetInstanceGroupId
void SetInstanceGroupId(Aws::String &&value)
Definition: PutAutoScalingPolicyRequest.h:109
Aws::EMR::Model::PutAutoScalingPolicyRequest::SetClusterId
void SetClusterId(const Aws::String &value)
Definition: PutAutoScalingPolicyRequest.h:54
Aws::EMR::Model::PutAutoScalingPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutAutoScalingPolicyRequest.h:31
Aws::EMR::Model::PutAutoScalingPolicyRequest::WithAutoScalingPolicy
PutAutoScalingPolicyRequest & WithAutoScalingPolicy(AutoScalingPolicy &&value)
Definition: PutAutoScalingPolicyRequest.h:164
Aws::EMR::Model::PutAutoScalingPolicyRequest::AutoScalingPolicyHasBeenSet
bool AutoScalingPolicyHasBeenSet() const
Definition: PutAutoScalingPolicyRequest.h:144
Aws::EMR::Model::PutAutoScalingPolicyRequest::GetAutoScalingPolicy
const AutoScalingPolicy & GetAutoScalingPolicy() const
Definition: PutAutoScalingPolicyRequest.h:139
Aws::EMR::Model::PutAutoScalingPolicyRequest
Definition: PutAutoScalingPolicyRequest.h:23
Aws::EMR::Model::PutAutoScalingPolicyRequest::GetClusterId
const Aws::String & GetClusterId() const
Definition: PutAutoScalingPolicyRequest.h:42
Aws::EMR::Model::PutAutoScalingPolicyRequest::SetInstanceGroupId
void SetInstanceGroupId(const char *value)
Definition: PutAutoScalingPolicyRequest.h:115
Aws::EMR::Model::PutAutoScalingPolicyRequest::WithInstanceGroupId
PutAutoScalingPolicyRequest & WithInstanceGroupId(Aws::String &&value)
Definition: PutAutoScalingPolicyRequest.h:127
Aws::EMR::Model::PutAutoScalingPolicyRequest::WithInstanceGroupId
PutAutoScalingPolicyRequest & WithInstanceGroupId(const Aws::String &value)
Definition: PutAutoScalingPolicyRequest.h:121
Aws::EMR::EMRRequest
Definition: EMRRequest.h:17
Aws::EMR::Model::PutAutoScalingPolicyRequest::WithClusterId
PutAutoScalingPolicyRequest & WithClusterId(Aws::String &&value)
Definition: PutAutoScalingPolicyRequest.h:78
Aws::EMR::Model::PutAutoScalingPolicyRequest::WithClusterId
PutAutoScalingPolicyRequest & WithClusterId(const Aws::String &value)
Definition: PutAutoScalingPolicyRequest.h:72
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
AWSString.h
Aws::EMR::Model::PutAutoScalingPolicyRequest::PutAutoScalingPolicyRequest
PutAutoScalingPolicyRequest()
Aws::EMR::Model::AutoScalingPolicy
Definition: AutoScalingPolicy.h:38
Aws::EMR::Model::PutAutoScalingPolicyRequest::SetAutoScalingPolicy
void SetAutoScalingPolicy(AutoScalingPolicy &&value)
Definition: PutAutoScalingPolicyRequest.h:154
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::PutAutoScalingPolicyRequest::InstanceGroupIdHasBeenSet
bool InstanceGroupIdHasBeenSet() const
Definition: PutAutoScalingPolicyRequest.h:97
Aws::EMR::Model::PutAutoScalingPolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::EMR::Model::PutAutoScalingPolicyRequest::WithAutoScalingPolicy
PutAutoScalingPolicyRequest & WithAutoScalingPolicy(const AutoScalingPolicy &value)
Definition: PutAutoScalingPolicyRequest.h:159
Aws::EMR::Model::PutAutoScalingPolicyRequest::WithInstanceGroupId
PutAutoScalingPolicyRequest & WithInstanceGroupId(const char *value)
Definition: PutAutoScalingPolicyRequest.h:133
AutoScalingPolicy.h
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::PutAutoScalingPolicyRequest::SetAutoScalingPolicy
void SetAutoScalingPolicy(const AutoScalingPolicy &value)
Definition: PutAutoScalingPolicyRequest.h:149
Aws::EMR::Model::PutAutoScalingPolicyRequest::GetInstanceGroupId
const Aws::String & GetInstanceGroupId() const
Definition: PutAutoScalingPolicyRequest.h:91