AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SetTerminationProtectionRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EMR
16{
17namespace Model
18{
19
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "SetTerminationProtection"; }
36
37 AWS_EMR_API Aws::String SerializePayload() const override;
38
40
41
43
48 inline const Aws::Vector<Aws::String>& GetJobFlowIds() const{ return m_jobFlowIds; }
49 inline bool JobFlowIdsHasBeenSet() const { return m_jobFlowIdsHasBeenSet; }
50 inline void SetJobFlowIds(const Aws::Vector<Aws::String>& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds = value; }
51 inline void SetJobFlowIds(Aws::Vector<Aws::String>&& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds = std::move(value); }
53 inline SetTerminationProtectionRequest& WithJobFlowIds(Aws::Vector<Aws::String>&& value) { SetJobFlowIds(std::move(value)); return *this;}
54 inline SetTerminationProtectionRequest& AddJobFlowIds(const Aws::String& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(value); return *this; }
55 inline SetTerminationProtectionRequest& AddJobFlowIds(Aws::String&& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(std::move(value)); return *this; }
56 inline SetTerminationProtectionRequest& AddJobFlowIds(const char* value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(value); return *this; }
58
60
65 inline bool GetTerminationProtected() const{ return m_terminationProtected; }
66 inline bool TerminationProtectedHasBeenSet() const { return m_terminationProtectedHasBeenSet; }
67 inline void SetTerminationProtected(bool value) { m_terminationProtectedHasBeenSet = true; m_terminationProtected = value; }
70 private:
71
72 Aws::Vector<Aws::String> m_jobFlowIds;
73 bool m_jobFlowIdsHasBeenSet = false;
74
75 bool m_terminationProtected;
76 bool m_terminationProtectedHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace EMR
81} // namespace Aws
SetTerminationProtectionRequest & AddJobFlowIds(Aws::String &&value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetJobFlowIds(const Aws::Vector< Aws::String > &value)
SetTerminationProtectionRequest & AddJobFlowIds(const char *value)
const Aws::Vector< Aws::String > & GetJobFlowIds() const
AWS_EMR_API Aws::String SerializePayload() const override
SetTerminationProtectionRequest & WithTerminationProtected(bool value)
SetTerminationProtectionRequest & WithJobFlowIds(Aws::Vector< Aws::String > &&value)
SetTerminationProtectionRequest & WithJobFlowIds(const Aws::Vector< Aws::String > &value)
SetTerminationProtectionRequest & AddJobFlowIds(const Aws::String &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