AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutManagedScalingPolicyRequest.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/elasticmapreduce/model/ManagedScalingPolicy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EMR
16{
17namespace 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_EMR_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetClusterId() const{ return m_clusterId; }
44 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
45 inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
46 inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
47 inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
48 inline PutManagedScalingPolicyRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
49 inline PutManagedScalingPolicyRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
50 inline PutManagedScalingPolicyRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
52
54
57 inline const ManagedScalingPolicy& GetManagedScalingPolicy() const{ return m_managedScalingPolicy; }
58 inline bool ManagedScalingPolicyHasBeenSet() const { return m_managedScalingPolicyHasBeenSet; }
59 inline void SetManagedScalingPolicy(const ManagedScalingPolicy& value) { m_managedScalingPolicyHasBeenSet = true; m_managedScalingPolicy = value; }
60 inline void SetManagedScalingPolicy(ManagedScalingPolicy&& value) { m_managedScalingPolicyHasBeenSet = true; m_managedScalingPolicy = std::move(value); }
64 private:
65
66 Aws::String m_clusterId;
67 bool m_clusterIdHasBeenSet = false;
68
69 ManagedScalingPolicy m_managedScalingPolicy;
70 bool m_managedScalingPolicyHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace EMR
75} // namespace Aws
PutManagedScalingPolicyRequest & WithClusterId(Aws::String &&value)
PutManagedScalingPolicyRequest & WithClusterId(const char *value)
PutManagedScalingPolicyRequest & WithManagedScalingPolicy(ManagedScalingPolicy &&value)
AWS_EMR_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
PutManagedScalingPolicyRequest & WithManagedScalingPolicy(const ManagedScalingPolicy &value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutManagedScalingPolicyRequest & WithClusterId(const Aws::String &value)
void SetManagedScalingPolicy(const ManagedScalingPolicy &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String