AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PutManagedScalingPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticmapreduce/EMRRequest.h>
9#include <aws/elasticmapreduce/EMR_EXPORTS.h>
10#include <aws/elasticmapreduce/model/ManagedScalingPolicy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EMR {
16namespace Model {
17
21 public:
22 AWS_EMR_API PutManagedScalingPolicyRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutManagedScalingPolicy"; }
29
30 AWS_EMR_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetClusterId() const { return m_clusterId; }
40 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
41 template <typename ClusterIdT = Aws::String>
42 void SetClusterId(ClusterIdT&& value) {
43 m_clusterIdHasBeenSet = true;
44 m_clusterId = std::forward<ClusterIdT>(value);
45 }
46 template <typename ClusterIdT = Aws::String>
48 SetClusterId(std::forward<ClusterIdT>(value));
49 return *this;
50 }
52
54
57 inline const ManagedScalingPolicy& GetManagedScalingPolicy() const { return m_managedScalingPolicy; }
58 inline bool ManagedScalingPolicyHasBeenSet() const { return m_managedScalingPolicyHasBeenSet; }
59 template <typename ManagedScalingPolicyT = ManagedScalingPolicy>
60 void SetManagedScalingPolicy(ManagedScalingPolicyT&& value) {
61 m_managedScalingPolicyHasBeenSet = true;
62 m_managedScalingPolicy = std::forward<ManagedScalingPolicyT>(value);
63 }
64 template <typename ManagedScalingPolicyT = ManagedScalingPolicy>
66 SetManagedScalingPolicy(std::forward<ManagedScalingPolicyT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_clusterId;
72
73 ManagedScalingPolicy m_managedScalingPolicy;
74 bool m_clusterIdHasBeenSet = false;
75 bool m_managedScalingPolicyHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace EMR
80} // namespace Aws
PutManagedScalingPolicyRequest & WithClusterId(ClusterIdT &&value)
PutManagedScalingPolicyRequest & WithManagedScalingPolicy(ManagedScalingPolicyT &&value)
AWS_EMR_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String