AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
25 AWS_EMR_API PutManagedScalingPolicyRequest() = default;
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 template<typename ClusterIdT = Aws::String>
46 void SetClusterId(ClusterIdT&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::forward<ClusterIdT>(value); }
47 template<typename ClusterIdT = Aws::String>
48 PutManagedScalingPolicyRequest& WithClusterId(ClusterIdT&& value) { SetClusterId(std::forward<ClusterIdT>(value)); return *this;}
50
52
55 inline const ManagedScalingPolicy& GetManagedScalingPolicy() const { return m_managedScalingPolicy; }
56 inline bool ManagedScalingPolicyHasBeenSet() const { return m_managedScalingPolicyHasBeenSet; }
57 template<typename ManagedScalingPolicyT = ManagedScalingPolicy>
58 void SetManagedScalingPolicy(ManagedScalingPolicyT&& value) { m_managedScalingPolicyHasBeenSet = true; m_managedScalingPolicy = std::forward<ManagedScalingPolicyT>(value); }
59 template<typename ManagedScalingPolicyT = ManagedScalingPolicy>
60 PutManagedScalingPolicyRequest& WithManagedScalingPolicy(ManagedScalingPolicyT&& value) { SetManagedScalingPolicy(std::forward<ManagedScalingPolicyT>(value)); return *this;}
62 private:
63
64 Aws::String m_clusterId;
65 bool m_clusterIdHasBeenSet = false;
66
67 ManagedScalingPolicy m_managedScalingPolicy;
68 bool m_managedScalingPolicyHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace EMR
73} // 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