AWS SDK for C++  1.8.71
AWS SDK for C++
TerminateJobFlowsRequest.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 "TerminateJobFlows"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
45  inline const Aws::Vector<Aws::String>& GetJobFlowIds() const{ return m_jobFlowIds; }
46 
50  inline bool JobFlowIdsHasBeenSet() const { return m_jobFlowIdsHasBeenSet; }
51 
55  inline void SetJobFlowIds(const Aws::Vector<Aws::String>& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds = value; }
56 
60  inline void SetJobFlowIds(Aws::Vector<Aws::String>&& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds = std::move(value); }
61 
65  inline TerminateJobFlowsRequest& WithJobFlowIds(const Aws::Vector<Aws::String>& value) { SetJobFlowIds(value); return *this;}
66 
70  inline TerminateJobFlowsRequest& WithJobFlowIds(Aws::Vector<Aws::String>&& value) { SetJobFlowIds(std::move(value)); return *this;}
71 
75  inline TerminateJobFlowsRequest& AddJobFlowIds(const Aws::String& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(value); return *this; }
76 
80  inline TerminateJobFlowsRequest& AddJobFlowIds(Aws::String&& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(std::move(value)); return *this; }
81 
85  inline TerminateJobFlowsRequest& AddJobFlowIds(const char* value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(value); return *this; }
86 
87  private:
88 
89  Aws::Vector<Aws::String> m_jobFlowIds;
90  bool m_jobFlowIdsHasBeenSet;
91  };
92 
93 } // namespace Model
94 } // namespace EMR
95 } // namespace Aws
TerminateJobFlowsRequest & AddJobFlowIds(const Aws::String &value)
TerminateJobFlowsRequest & AddJobFlowIds(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetJobFlowIds(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
TerminateJobFlowsRequest & WithJobFlowIds(Aws::Vector< Aws::String > &&value)
TerminateJobFlowsRequest & AddJobFlowIds(const char *value)
void SetJobFlowIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetJobFlowIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
TerminateJobFlowsRequest & WithJobFlowIds(const Aws::Vector< Aws::String > &value)