AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutAutoTerminationPolicyRequest.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/AutoTerminationPolicy.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 "PutAutoTerminationPolicy"; }
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 PutAutoTerminationPolicyRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
49 inline PutAutoTerminationPolicyRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
50 inline PutAutoTerminationPolicyRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
52
54
57 inline const AutoTerminationPolicy& GetAutoTerminationPolicy() const{ return m_autoTerminationPolicy; }
58 inline bool AutoTerminationPolicyHasBeenSet() const { return m_autoTerminationPolicyHasBeenSet; }
59 inline void SetAutoTerminationPolicy(const AutoTerminationPolicy& value) { m_autoTerminationPolicyHasBeenSet = true; m_autoTerminationPolicy = value; }
60 inline void SetAutoTerminationPolicy(AutoTerminationPolicy&& value) { m_autoTerminationPolicyHasBeenSet = true; m_autoTerminationPolicy = std::move(value); }
64 private:
65
66 Aws::String m_clusterId;
67 bool m_clusterIdHasBeenSet = false;
68
69 AutoTerminationPolicy m_autoTerminationPolicy;
70 bool m_autoTerminationPolicyHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace EMR
75} // namespace Aws
AWS_EMR_API Aws::String SerializePayload() const override
PutAutoTerminationPolicyRequest & WithClusterId(Aws::String &&value)
PutAutoTerminationPolicyRequest & WithAutoTerminationPolicy(const AutoTerminationPolicy &value)
void SetAutoTerminationPolicy(const AutoTerminationPolicy &value)
PutAutoTerminationPolicyRequest & WithClusterId(const Aws::String &value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutAutoTerminationPolicyRequest & WithClusterId(const char *value)
PutAutoTerminationPolicyRequest & WithAutoTerminationPolicy(AutoTerminationPolicy &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String