AWS SDK for C++  1.9.45
AWS SDK for C++
PutManagedScalingPolicyRequest.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 "PutManagedScalingPolicy"; }
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 PutManagedScalingPolicyRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
73 
78  inline PutManagedScalingPolicyRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
79 
84  inline PutManagedScalingPolicyRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
85 
86 
90  inline const ManagedScalingPolicy& GetManagedScalingPolicy() const{ return m_managedScalingPolicy; }
91 
95  inline bool ManagedScalingPolicyHasBeenSet() const { return m_managedScalingPolicyHasBeenSet; }
96 
100  inline void SetManagedScalingPolicy(const ManagedScalingPolicy& value) { m_managedScalingPolicyHasBeenSet = true; m_managedScalingPolicy = value; }
101 
105  inline void SetManagedScalingPolicy(ManagedScalingPolicy&& value) { m_managedScalingPolicyHasBeenSet = true; m_managedScalingPolicy = std::move(value); }
106 
110  inline PutManagedScalingPolicyRequest& WithManagedScalingPolicy(const ManagedScalingPolicy& value) { SetManagedScalingPolicy(value); return *this;}
111 
115  inline PutManagedScalingPolicyRequest& WithManagedScalingPolicy(ManagedScalingPolicy&& value) { SetManagedScalingPolicy(std::move(value)); return *this;}
116 
117  private:
118 
119  Aws::String m_clusterId;
120  bool m_clusterIdHasBeenSet;
121 
122  ManagedScalingPolicy m_managedScalingPolicy;
123  bool m_managedScalingPolicyHasBeenSet;
124  };
125 
126 } // namespace Model
127 } // namespace EMR
128 } // namespace Aws
Aws::EMR::Model::PutManagedScalingPolicyRequest::WithClusterId
PutManagedScalingPolicyRequest & WithClusterId(Aws::String &&value)
Definition: PutManagedScalingPolicyRequest.h:78
Aws::EMR::Model::PutManagedScalingPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EMR::Model::PutManagedScalingPolicyRequest::PutManagedScalingPolicyRequest
PutManagedScalingPolicyRequest()
Aws::EMR::Model::PutManagedScalingPolicyRequest::WithManagedScalingPolicy
PutManagedScalingPolicyRequest & WithManagedScalingPolicy(const ManagedScalingPolicy &value)
Definition: PutManagedScalingPolicyRequest.h:110
Aws::EMR::Model::PutManagedScalingPolicyRequest
Definition: PutManagedScalingPolicyRequest.h:23
Aws::EMR::Model::PutManagedScalingPolicyRequest::ManagedScalingPolicyHasBeenSet
bool ManagedScalingPolicyHasBeenSet() const
Definition: PutManagedScalingPolicyRequest.h:95
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
EMR_EXPORTS.h
EMRRequest.h
Aws::EMR::Model::PutManagedScalingPolicyRequest::WithManagedScalingPolicy
PutManagedScalingPolicyRequest & WithManagedScalingPolicy(ManagedScalingPolicy &&value)
Definition: PutManagedScalingPolicyRequest.h:115
Aws::EMR::Model::PutManagedScalingPolicyRequest::WithClusterId
PutManagedScalingPolicyRequest & WithClusterId(const char *value)
Definition: PutManagedScalingPolicyRequest.h:84
Aws::EMR::Model::PutManagedScalingPolicyRequest::GetManagedScalingPolicy
const ManagedScalingPolicy & GetManagedScalingPolicy() const
Definition: PutManagedScalingPolicyRequest.h:90
Aws::EMR::Model::ManagedScalingPolicy
Definition: ManagedScalingPolicy.h:35
Aws::EMR::Model::PutManagedScalingPolicyRequest::WithClusterId
PutManagedScalingPolicyRequest & WithClusterId(const Aws::String &value)
Definition: PutManagedScalingPolicyRequest.h:72
Aws::EMR::EMRRequest
Definition: EMRRequest.h:17
ManagedScalingPolicy.h
Aws::EMR::Model::PutManagedScalingPolicyRequest::SetClusterId
void SetClusterId(Aws::String &&value)
Definition: PutManagedScalingPolicyRequest.h:60
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
AWSString.h
Aws::EMR::Model::PutManagedScalingPolicyRequest::GetClusterId
const Aws::String & GetClusterId() const
Definition: PutManagedScalingPolicyRequest.h:42
Aws::EMR::Model::PutManagedScalingPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutManagedScalingPolicyRequest.h:31
Aws::EMR::Model::PutManagedScalingPolicyRequest::SetManagedScalingPolicy
void SetManagedScalingPolicy(const ManagedScalingPolicy &value)
Definition: PutManagedScalingPolicyRequest.h:100
Aws::EMR::Model::PutManagedScalingPolicyRequest::SetClusterId
void SetClusterId(const char *value)
Definition: PutManagedScalingPolicyRequest.h:66
Aws::EMR::Model::PutManagedScalingPolicyRequest::SetManagedScalingPolicy
void SetManagedScalingPolicy(ManagedScalingPolicy &&value)
Definition: PutManagedScalingPolicyRequest.h:105
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::PutManagedScalingPolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::PutManagedScalingPolicyRequest::SetClusterId
void SetClusterId(const Aws::String &value)
Definition: PutManagedScalingPolicyRequest.h:54
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::PutManagedScalingPolicyRequest::ClusterIdHasBeenSet
bool ClusterIdHasBeenSet() const
Definition: PutManagedScalingPolicyRequest.h:48