AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SetUnhealthyNodeReplacementRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticmapreduce/EMRRequest.h>
10#include <aws/elasticmapreduce/EMR_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EMR {
16namespace Model {
17
21 public:
22 AWS_EMR_API SetUnhealthyNodeReplacementRequest() = 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 "SetUnhealthyNodeReplacement"; }
29
30 AWS_EMR_API Aws::String SerializePayload() const override;
31
33
35
40 inline const Aws::Vector<Aws::String>& GetJobFlowIds() const { return m_jobFlowIds; }
41 inline bool JobFlowIdsHasBeenSet() const { return m_jobFlowIdsHasBeenSet; }
42 template <typename JobFlowIdsT = Aws::Vector<Aws::String>>
43 void SetJobFlowIds(JobFlowIdsT&& value) {
44 m_jobFlowIdsHasBeenSet = true;
45 m_jobFlowIds = std::forward<JobFlowIdsT>(value);
46 }
47 template <typename JobFlowIdsT = Aws::Vector<Aws::String>>
49 SetJobFlowIds(std::forward<JobFlowIdsT>(value));
50 return *this;
51 }
52 template <typename JobFlowIdsT = Aws::String>
54 m_jobFlowIdsHasBeenSet = true;
55 m_jobFlowIds.emplace_back(std::forward<JobFlowIdsT>(value));
56 return *this;
57 }
59
61
65 inline bool GetUnhealthyNodeReplacement() const { return m_unhealthyNodeReplacement; }
66 inline bool UnhealthyNodeReplacementHasBeenSet() const { return m_unhealthyNodeReplacementHasBeenSet; }
67 inline void SetUnhealthyNodeReplacement(bool value) {
68 m_unhealthyNodeReplacementHasBeenSet = true;
69 m_unhealthyNodeReplacement = value;
70 }
73 return *this;
74 }
76 private:
77 Aws::Vector<Aws::String> m_jobFlowIds;
78
79 bool m_unhealthyNodeReplacement{false};
80 bool m_jobFlowIdsHasBeenSet = false;
81 bool m_unhealthyNodeReplacementHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace EMR
86} // namespace Aws
SetUnhealthyNodeReplacementRequest & AddJobFlowIds(JobFlowIdsT &&value)
AWS_EMR_API Aws::String SerializePayload() const override
SetUnhealthyNodeReplacementRequest & WithUnhealthyNodeReplacement(bool value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SetUnhealthyNodeReplacementRequest & WithJobFlowIds(JobFlowIdsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector