AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SetTerminationProtectionRequest.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
25 public:
26 AWS_EMR_API SetTerminationProtectionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SetTerminationProtection"; }
33
34 AWS_EMR_API Aws::String SerializePayload() const override;
35
37
39
44 inline const Aws::Vector<Aws::String>& GetJobFlowIds() const { return m_jobFlowIds; }
45 inline bool JobFlowIdsHasBeenSet() const { return m_jobFlowIdsHasBeenSet; }
46 template <typename JobFlowIdsT = Aws::Vector<Aws::String>>
47 void SetJobFlowIds(JobFlowIdsT&& value) {
48 m_jobFlowIdsHasBeenSet = true;
49 m_jobFlowIds = std::forward<JobFlowIdsT>(value);
50 }
51 template <typename JobFlowIdsT = Aws::Vector<Aws::String>>
53 SetJobFlowIds(std::forward<JobFlowIdsT>(value));
54 return *this;
55 }
56 template <typename JobFlowIdsT = Aws::String>
58 m_jobFlowIdsHasBeenSet = true;
59 m_jobFlowIds.emplace_back(std::forward<JobFlowIdsT>(value));
60 return *this;
61 }
63
65
70 inline bool GetTerminationProtected() const { return m_terminationProtected; }
71 inline bool TerminationProtectedHasBeenSet() const { return m_terminationProtectedHasBeenSet; }
72 inline void SetTerminationProtected(bool value) {
73 m_terminationProtectedHasBeenSet = true;
74 m_terminationProtected = value;
75 }
78 return *this;
79 }
81 private:
82 Aws::Vector<Aws::String> m_jobFlowIds;
83
84 bool m_terminationProtected{false};
85 bool m_jobFlowIdsHasBeenSet = false;
86 bool m_terminationProtectedHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace EMR
91} // namespace Aws
SetTerminationProtectionRequest & WithJobFlowIds(JobFlowIdsT &&value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SetTerminationProtectionRequest & AddJobFlowIds(JobFlowIdsT &&value)
const Aws::Vector< Aws::String > & GetJobFlowIds() const
AWS_EMR_API Aws::String SerializePayload() const override
SetTerminationProtectionRequest & WithTerminationProtected(bool 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