1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/glue/Glue_EXPORTS.h> 8 #include <aws/glue/GlueRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/core/utils/memory/stl/AWSVector.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace Glue 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_GLUE_API BatchStopJobRunRequest : public GlueRequest 23 { 24 public: 25 BatchStopJobRunRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "BatchStopJobRun"; } 32 33 Aws::String SerializePayload() const override; 34 35 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 36 37 38 /** 39 * <p>The name of the job definition for which to stop job runs.</p> 40 */ GetJobName()41 inline const Aws::String& GetJobName() const{ return m_jobName; } 42 43 /** 44 * <p>The name of the job definition for which to stop job runs.</p> 45 */ JobNameHasBeenSet()46 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } 47 48 /** 49 * <p>The name of the job definition for which to stop job runs.</p> 50 */ SetJobName(const Aws::String & value)51 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } 52 53 /** 54 * <p>The name of the job definition for which to stop job runs.</p> 55 */ SetJobName(Aws::String && value)56 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } 57 58 /** 59 * <p>The name of the job definition for which to stop job runs.</p> 60 */ SetJobName(const char * value)61 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } 62 63 /** 64 * <p>The name of the job definition for which to stop job runs.</p> 65 */ WithJobName(const Aws::String & value)66 inline BatchStopJobRunRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} 67 68 /** 69 * <p>The name of the job definition for which to stop job runs.</p> 70 */ WithJobName(Aws::String && value)71 inline BatchStopJobRunRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} 72 73 /** 74 * <p>The name of the job definition for which to stop job runs.</p> 75 */ WithJobName(const char * value)76 inline BatchStopJobRunRequest& WithJobName(const char* value) { SetJobName(value); return *this;} 77 78 79 /** 80 * <p>A list of the <code>JobRunIds</code> that should be stopped for that job 81 * definition.</p> 82 */ GetJobRunIds()83 inline const Aws::Vector<Aws::String>& GetJobRunIds() const{ return m_jobRunIds; } 84 85 /** 86 * <p>A list of the <code>JobRunIds</code> that should be stopped for that job 87 * definition.</p> 88 */ JobRunIdsHasBeenSet()89 inline bool JobRunIdsHasBeenSet() const { return m_jobRunIdsHasBeenSet; } 90 91 /** 92 * <p>A list of the <code>JobRunIds</code> that should be stopped for that job 93 * definition.</p> 94 */ SetJobRunIds(const Aws::Vector<Aws::String> & value)95 inline void SetJobRunIds(const Aws::Vector<Aws::String>& value) { m_jobRunIdsHasBeenSet = true; m_jobRunIds = value; } 96 97 /** 98 * <p>A list of the <code>JobRunIds</code> that should be stopped for that job 99 * definition.</p> 100 */ SetJobRunIds(Aws::Vector<Aws::String> && value)101 inline void SetJobRunIds(Aws::Vector<Aws::String>&& value) { m_jobRunIdsHasBeenSet = true; m_jobRunIds = std::move(value); } 102 103 /** 104 * <p>A list of the <code>JobRunIds</code> that should be stopped for that job 105 * definition.</p> 106 */ WithJobRunIds(const Aws::Vector<Aws::String> & value)107 inline BatchStopJobRunRequest& WithJobRunIds(const Aws::Vector<Aws::String>& value) { SetJobRunIds(value); return *this;} 108 109 /** 110 * <p>A list of the <code>JobRunIds</code> that should be stopped for that job 111 * definition.</p> 112 */ WithJobRunIds(Aws::Vector<Aws::String> && value)113 inline BatchStopJobRunRequest& WithJobRunIds(Aws::Vector<Aws::String>&& value) { SetJobRunIds(std::move(value)); return *this;} 114 115 /** 116 * <p>A list of the <code>JobRunIds</code> that should be stopped for that job 117 * definition.</p> 118 */ AddJobRunIds(const Aws::String & value)119 inline BatchStopJobRunRequest& AddJobRunIds(const Aws::String& value) { m_jobRunIdsHasBeenSet = true; m_jobRunIds.push_back(value); return *this; } 120 121 /** 122 * <p>A list of the <code>JobRunIds</code> that should be stopped for that job 123 * definition.</p> 124 */ AddJobRunIds(Aws::String && value)125 inline BatchStopJobRunRequest& AddJobRunIds(Aws::String&& value) { m_jobRunIdsHasBeenSet = true; m_jobRunIds.push_back(std::move(value)); return *this; } 126 127 /** 128 * <p>A list of the <code>JobRunIds</code> that should be stopped for that job 129 * definition.</p> 130 */ AddJobRunIds(const char * value)131 inline BatchStopJobRunRequest& AddJobRunIds(const char* value) { m_jobRunIdsHasBeenSet = true; m_jobRunIds.push_back(value); return *this; } 132 133 private: 134 135 Aws::String m_jobName; 136 bool m_jobNameHasBeenSet; 137 138 Aws::Vector<Aws::String> m_jobRunIds; 139 bool m_jobRunIdsHasBeenSet; 140 }; 141 142 } // namespace Model 143 } // namespace Glue 144 } // namespace Aws 145