AWS SDK for C++  1.9.19
AWS SDK for C++
SetTerminationProtectionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EMR
16 {
17 namespace 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::String SerializePayload() const override;
38 
40 
41 
47  inline const Aws::Vector<Aws::String>& GetJobFlowIds() const{ return m_jobFlowIds; }
48 
54  inline bool JobFlowIdsHasBeenSet() const { return m_jobFlowIdsHasBeenSet; }
55 
61  inline void SetJobFlowIds(const Aws::Vector<Aws::String>& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds = value; }
62 
68  inline void SetJobFlowIds(Aws::Vector<Aws::String>&& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds = std::move(value); }
69 
75  inline SetTerminationProtectionRequest& WithJobFlowIds(const Aws::Vector<Aws::String>& value) { SetJobFlowIds(value); return *this;}
76 
82  inline SetTerminationProtectionRequest& WithJobFlowIds(Aws::Vector<Aws::String>&& value) { SetJobFlowIds(std::move(value)); return *this;}
83 
89  inline SetTerminationProtectionRequest& AddJobFlowIds(const Aws::String& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(value); return *this; }
90 
96  inline SetTerminationProtectionRequest& AddJobFlowIds(Aws::String&& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(std::move(value)); return *this; }
97 
103  inline SetTerminationProtectionRequest& AddJobFlowIds(const char* value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(value); return *this; }
104 
105 
111  inline bool GetTerminationProtected() const{ return m_terminationProtected; }
112 
118  inline bool TerminationProtectedHasBeenSet() const { return m_terminationProtectedHasBeenSet; }
119 
125  inline void SetTerminationProtected(bool value) { m_terminationProtectedHasBeenSet = true; m_terminationProtected = value; }
126 
132  inline SetTerminationProtectionRequest& WithTerminationProtected(bool value) { SetTerminationProtected(value); return *this;}
133 
134  private:
135 
136  Aws::Vector<Aws::String> m_jobFlowIds;
137  bool m_jobFlowIdsHasBeenSet;
138 
139  bool m_terminationProtected;
140  bool m_terminationProtectedHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace EMR
145 } // namespace Aws
Aws::EMR::Model::SetTerminationProtectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetTerminationProtectionRequest.h:35
Aws::EMR::Model::SetTerminationProtectionRequest::SetJobFlowIds
void SetJobFlowIds(Aws::Vector< Aws::String > &&value)
Definition: SetTerminationProtectionRequest.h:68
Aws::EMR::Model::SetTerminationProtectionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::EMR::Model::SetTerminationProtectionRequest::SetTerminationProtected
void SetTerminationProtected(bool value)
Definition: SetTerminationProtectionRequest.h:125
Aws::EMR::Model::SetTerminationProtectionRequest::WithJobFlowIds
SetTerminationProtectionRequest & WithJobFlowIds(const Aws::Vector< Aws::String > &value)
Definition: SetTerminationProtectionRequest.h:75
EMR_EXPORTS.h
EMRRequest.h
Aws::EMR::Model::SetTerminationProtectionRequest
Definition: SetTerminationProtectionRequest.h:27
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::SetTerminationProtectionRequest::AddJobFlowIds
SetTerminationProtectionRequest & AddJobFlowIds(const Aws::String &value)
Definition: SetTerminationProtectionRequest.h:89
AWSVector.h
Aws::EMR::Model::SetTerminationProtectionRequest::WithTerminationProtected
SetTerminationProtectionRequest & WithTerminationProtected(bool value)
Definition: SetTerminationProtectionRequest.h:132
Aws::EMR::Model::SetTerminationProtectionRequest::AddJobFlowIds
SetTerminationProtectionRequest & AddJobFlowIds(const char *value)
Definition: SetTerminationProtectionRequest.h:103
Aws::EMR::Model::SetTerminationProtectionRequest::SetJobFlowIds
void SetJobFlowIds(const Aws::Vector< Aws::String > &value)
Definition: SetTerminationProtectionRequest.h:61
Aws::EMR::EMRRequest
Definition: EMRRequest.h:17
Aws::EMR::Model::SetTerminationProtectionRequest::TerminationProtectedHasBeenSet
bool TerminationProtectedHasBeenSet() const
Definition: SetTerminationProtectionRequest.h:118
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
AWSString.h
Aws::EMR::Model::SetTerminationProtectionRequest::WithJobFlowIds
SetTerminationProtectionRequest & WithJobFlowIds(Aws::Vector< Aws::String > &&value)
Definition: SetTerminationProtectionRequest.h:82
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::SetTerminationProtectionRequest::JobFlowIdsHasBeenSet
bool JobFlowIdsHasBeenSet() const
Definition: SetTerminationProtectionRequest.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::SetTerminationProtectionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EMR::Model::SetTerminationProtectionRequest::SetTerminationProtectionRequest
SetTerminationProtectionRequest()
Aws::EMR::Model::SetTerminationProtectionRequest::GetTerminationProtected
bool GetTerminationProtected() const
Definition: SetTerminationProtectionRequest.h:111
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::SetTerminationProtectionRequest::AddJobFlowIds
SetTerminationProtectionRequest & AddJobFlowIds(Aws::String &&value)
Definition: SetTerminationProtectionRequest.h:96
Aws::EMR::Model::SetTerminationProtectionRequest::GetJobFlowIds
const Aws::Vector< Aws::String > & GetJobFlowIds() const
Definition: SetTerminationProtectionRequest.h:47