|
| 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/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 | + |
| 13 | +namespace Aws |
| 14 | +{ |
| 15 | +namespace EMR |
| 16 | +{ |
| 17 | +namespace Model |
| 18 | +{ |
| 19 | + |
| 20 | + /** |
| 21 | + */ |
| 22 | + class SetKeepJobFlowAliveWhenNoStepsRequest : public EMRRequest |
| 23 | + { |
| 24 | + public: |
| 25 | + AWS_EMR_API SetKeepJobFlowAliveWhenNoStepsRequest(); |
| 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. |
| 31 | + inline virtual const char* GetServiceRequestName() const override { return "SetKeepJobFlowAliveWhenNoSteps"; } |
| 32 | + |
| 33 | + AWS_EMR_API Aws::String SerializePayload() const override; |
| 34 | + |
| 35 | + AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; |
| 36 | + |
| 37 | + |
| 38 | + /** |
| 39 | + * <p>A list of strings that uniquely identify the clusters to protect. This |
| 40 | + * identifier is returned by <a |
| 41 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html">RunJobFlow</a> |
| 42 | + * and can also be obtained from <a |
| 43 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_DescribeJobFlows.html">DescribeJobFlows</a>.</p> |
| 44 | + */ |
| 45 | + inline const Aws::Vector<Aws::String>& GetJobFlowIds() const{ return m_jobFlowIds; } |
| 46 | + |
| 47 | + /** |
| 48 | + * <p>A list of strings that uniquely identify the clusters to protect. This |
| 49 | + * identifier is returned by <a |
| 50 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html">RunJobFlow</a> |
| 51 | + * and can also be obtained from <a |
| 52 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_DescribeJobFlows.html">DescribeJobFlows</a>.</p> |
| 53 | + */ |
| 54 | + inline bool JobFlowIdsHasBeenSet() const { return m_jobFlowIdsHasBeenSet; } |
| 55 | + |
| 56 | + /** |
| 57 | + * <p>A list of strings that uniquely identify the clusters to protect. This |
| 58 | + * identifier is returned by <a |
| 59 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html">RunJobFlow</a> |
| 60 | + * and can also be obtained from <a |
| 61 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_DescribeJobFlows.html">DescribeJobFlows</a>.</p> |
| 62 | + */ |
| 63 | + inline void SetJobFlowIds(const Aws::Vector<Aws::String>& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds = value; } |
| 64 | + |
| 65 | + /** |
| 66 | + * <p>A list of strings that uniquely identify the clusters to protect. This |
| 67 | + * identifier is returned by <a |
| 68 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html">RunJobFlow</a> |
| 69 | + * and can also be obtained from <a |
| 70 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_DescribeJobFlows.html">DescribeJobFlows</a>.</p> |
| 71 | + */ |
| 72 | + inline void SetJobFlowIds(Aws::Vector<Aws::String>&& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds = std::move(value); } |
| 73 | + |
| 74 | + /** |
| 75 | + * <p>A list of strings that uniquely identify the clusters to protect. This |
| 76 | + * identifier is returned by <a |
| 77 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html">RunJobFlow</a> |
| 78 | + * and can also be obtained from <a |
| 79 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_DescribeJobFlows.html">DescribeJobFlows</a>.</p> |
| 80 | + */ |
| 81 | + inline SetKeepJobFlowAliveWhenNoStepsRequest& WithJobFlowIds(const Aws::Vector<Aws::String>& value) { SetJobFlowIds(value); return *this;} |
| 82 | + |
| 83 | + /** |
| 84 | + * <p>A list of strings that uniquely identify the clusters to protect. This |
| 85 | + * identifier is returned by <a |
| 86 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html">RunJobFlow</a> |
| 87 | + * and can also be obtained from <a |
| 88 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_DescribeJobFlows.html">DescribeJobFlows</a>.</p> |
| 89 | + */ |
| 90 | + inline SetKeepJobFlowAliveWhenNoStepsRequest& WithJobFlowIds(Aws::Vector<Aws::String>&& value) { SetJobFlowIds(std::move(value)); return *this;} |
| 91 | + |
| 92 | + /** |
| 93 | + * <p>A list of strings that uniquely identify the clusters to protect. This |
| 94 | + * identifier is returned by <a |
| 95 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html">RunJobFlow</a> |
| 96 | + * and can also be obtained from <a |
| 97 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_DescribeJobFlows.html">DescribeJobFlows</a>.</p> |
| 98 | + */ |
| 99 | + inline SetKeepJobFlowAliveWhenNoStepsRequest& AddJobFlowIds(const Aws::String& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(value); return *this; } |
| 100 | + |
| 101 | + /** |
| 102 | + * <p>A list of strings that uniquely identify the clusters to protect. This |
| 103 | + * identifier is returned by <a |
| 104 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html">RunJobFlow</a> |
| 105 | + * and can also be obtained from <a |
| 106 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_DescribeJobFlows.html">DescribeJobFlows</a>.</p> |
| 107 | + */ |
| 108 | + inline SetKeepJobFlowAliveWhenNoStepsRequest& AddJobFlowIds(Aws::String&& value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(std::move(value)); return *this; } |
| 109 | + |
| 110 | + /** |
| 111 | + * <p>A list of strings that uniquely identify the clusters to protect. This |
| 112 | + * identifier is returned by <a |
| 113 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html">RunJobFlow</a> |
| 114 | + * and can also be obtained from <a |
| 115 | + * href="https://docs.aws.amazon.com/emr/latest/APIReference/API_DescribeJobFlows.html">DescribeJobFlows</a>.</p> |
| 116 | + */ |
| 117 | + inline SetKeepJobFlowAliveWhenNoStepsRequest& AddJobFlowIds(const char* value) { m_jobFlowIdsHasBeenSet = true; m_jobFlowIds.push_back(value); return *this; } |
| 118 | + |
| 119 | + |
| 120 | + /** |
| 121 | + * <p>A Boolean that indicates whether to terminate the cluster after all steps are |
| 122 | + * executed.</p> |
| 123 | + */ |
| 124 | + inline bool GetKeepJobFlowAliveWhenNoSteps() const{ return m_keepJobFlowAliveWhenNoSteps; } |
| 125 | + |
| 126 | + /** |
| 127 | + * <p>A Boolean that indicates whether to terminate the cluster after all steps are |
| 128 | + * executed.</p> |
| 129 | + */ |
| 130 | + inline bool KeepJobFlowAliveWhenNoStepsHasBeenSet() const { return m_keepJobFlowAliveWhenNoStepsHasBeenSet; } |
| 131 | + |
| 132 | + /** |
| 133 | + * <p>A Boolean that indicates whether to terminate the cluster after all steps are |
| 134 | + * executed.</p> |
| 135 | + */ |
| 136 | + inline void SetKeepJobFlowAliveWhenNoSteps(bool value) { m_keepJobFlowAliveWhenNoStepsHasBeenSet = true; m_keepJobFlowAliveWhenNoSteps = value; } |
| 137 | + |
| 138 | + /** |
| 139 | + * <p>A Boolean that indicates whether to terminate the cluster after all steps are |
| 140 | + * executed.</p> |
| 141 | + */ |
| 142 | + inline SetKeepJobFlowAliveWhenNoStepsRequest& WithKeepJobFlowAliveWhenNoSteps(bool value) { SetKeepJobFlowAliveWhenNoSteps(value); return *this;} |
| 143 | + |
| 144 | + private: |
| 145 | + |
| 146 | + Aws::Vector<Aws::String> m_jobFlowIds; |
| 147 | + bool m_jobFlowIdsHasBeenSet = false; |
| 148 | + |
| 149 | + bool m_keepJobFlowAliveWhenNoSteps; |
| 150 | + bool m_keepJobFlowAliveWhenNoStepsHasBeenSet = false; |
| 151 | + }; |
| 152 | + |
| 153 | +} // namespace Model |
| 154 | +} // namespace EMR |
| 155 | +} // namespace Aws |
0 commit comments