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/sagemaker/SageMaker_EXPORTS.h>
8 #include <aws/sagemaker/SageMakerRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/core/utils/memory/stl/AWSVector.h>
11 #include <aws/sagemaker/model/OutputParameter.h>
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace SageMaker
18 {
19 namespace Model
20 {
21 
22   /**
23    */
24   class AWS_SAGEMAKER_API SendPipelineExecutionStepSuccessRequest : public SageMakerRequest
25   {
26   public:
27     SendPipelineExecutionStepSuccessRequest();
28 
29     // Service request name is the Operation name which will send this request out,
30     // each operation should has unique request name, so that we can get operation's name from this request.
31     // Note: this is not true for response, multiple operations may have the same response name,
32     // so we can not get operation's name from response.
GetServiceRequestName()33     inline virtual const char* GetServiceRequestName() const override { return "SendPipelineExecutionStepSuccess"; }
34 
35     Aws::String SerializePayload() const override;
36 
37     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
40     /**
41      * <p>The pipeline generated token from the Amazon SQS queue.</p>
42      */
GetCallbackToken()43     inline const Aws::String& GetCallbackToken() const{ return m_callbackToken; }
44 
45     /**
46      * <p>The pipeline generated token from the Amazon SQS queue.</p>
47      */
CallbackTokenHasBeenSet()48     inline bool CallbackTokenHasBeenSet() const { return m_callbackTokenHasBeenSet; }
49 
50     /**
51      * <p>The pipeline generated token from the Amazon SQS queue.</p>
52      */
SetCallbackToken(const Aws::String & value)53     inline void SetCallbackToken(const Aws::String& value) { m_callbackTokenHasBeenSet = true; m_callbackToken = value; }
54 
55     /**
56      * <p>The pipeline generated token from the Amazon SQS queue.</p>
57      */
SetCallbackToken(Aws::String && value)58     inline void SetCallbackToken(Aws::String&& value) { m_callbackTokenHasBeenSet = true; m_callbackToken = std::move(value); }
59 
60     /**
61      * <p>The pipeline generated token from the Amazon SQS queue.</p>
62      */
SetCallbackToken(const char * value)63     inline void SetCallbackToken(const char* value) { m_callbackTokenHasBeenSet = true; m_callbackToken.assign(value); }
64 
65     /**
66      * <p>The pipeline generated token from the Amazon SQS queue.</p>
67      */
WithCallbackToken(const Aws::String & value)68     inline SendPipelineExecutionStepSuccessRequest& WithCallbackToken(const Aws::String& value) { SetCallbackToken(value); return *this;}
69 
70     /**
71      * <p>The pipeline generated token from the Amazon SQS queue.</p>
72      */
WithCallbackToken(Aws::String && value)73     inline SendPipelineExecutionStepSuccessRequest& WithCallbackToken(Aws::String&& value) { SetCallbackToken(std::move(value)); return *this;}
74 
75     /**
76      * <p>The pipeline generated token from the Amazon SQS queue.</p>
77      */
WithCallbackToken(const char * value)78     inline SendPipelineExecutionStepSuccessRequest& WithCallbackToken(const char* value) { SetCallbackToken(value); return *this;}
79 
80 
81     /**
82      * <p>A list of the output parameters of the callback step.</p>
83      */
GetOutputParameters()84     inline const Aws::Vector<OutputParameter>& GetOutputParameters() const{ return m_outputParameters; }
85 
86     /**
87      * <p>A list of the output parameters of the callback step.</p>
88      */
OutputParametersHasBeenSet()89     inline bool OutputParametersHasBeenSet() const { return m_outputParametersHasBeenSet; }
90 
91     /**
92      * <p>A list of the output parameters of the callback step.</p>
93      */
SetOutputParameters(const Aws::Vector<OutputParameter> & value)94     inline void SetOutputParameters(const Aws::Vector<OutputParameter>& value) { m_outputParametersHasBeenSet = true; m_outputParameters = value; }
95 
96     /**
97      * <p>A list of the output parameters of the callback step.</p>
98      */
SetOutputParameters(Aws::Vector<OutputParameter> && value)99     inline void SetOutputParameters(Aws::Vector<OutputParameter>&& value) { m_outputParametersHasBeenSet = true; m_outputParameters = std::move(value); }
100 
101     /**
102      * <p>A list of the output parameters of the callback step.</p>
103      */
WithOutputParameters(const Aws::Vector<OutputParameter> & value)104     inline SendPipelineExecutionStepSuccessRequest& WithOutputParameters(const Aws::Vector<OutputParameter>& value) { SetOutputParameters(value); return *this;}
105 
106     /**
107      * <p>A list of the output parameters of the callback step.</p>
108      */
WithOutputParameters(Aws::Vector<OutputParameter> && value)109     inline SendPipelineExecutionStepSuccessRequest& WithOutputParameters(Aws::Vector<OutputParameter>&& value) { SetOutputParameters(std::move(value)); return *this;}
110 
111     /**
112      * <p>A list of the output parameters of the callback step.</p>
113      */
AddOutputParameters(const OutputParameter & value)114     inline SendPipelineExecutionStepSuccessRequest& AddOutputParameters(const OutputParameter& value) { m_outputParametersHasBeenSet = true; m_outputParameters.push_back(value); return *this; }
115 
116     /**
117      * <p>A list of the output parameters of the callback step.</p>
118      */
AddOutputParameters(OutputParameter && value)119     inline SendPipelineExecutionStepSuccessRequest& AddOutputParameters(OutputParameter&& value) { m_outputParametersHasBeenSet = true; m_outputParameters.push_back(std::move(value)); return *this; }
120 
121 
122     /**
123      * <p>A unique, case-sensitive identifier that you provide to ensure the
124      * idempotency of the operation. An idempotent operation completes no more than one
125      * time.</p>
126      */
GetClientRequestToken()127     inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
128 
129     /**
130      * <p>A unique, case-sensitive identifier that you provide to ensure the
131      * idempotency of the operation. An idempotent operation completes no more than one
132      * time.</p>
133      */
ClientRequestTokenHasBeenSet()134     inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
135 
136     /**
137      * <p>A unique, case-sensitive identifier that you provide to ensure the
138      * idempotency of the operation. An idempotent operation completes no more than one
139      * time.</p>
140      */
SetClientRequestToken(const Aws::String & value)141     inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
142 
143     /**
144      * <p>A unique, case-sensitive identifier that you provide to ensure the
145      * idempotency of the operation. An idempotent operation completes no more than one
146      * time.</p>
147      */
SetClientRequestToken(Aws::String && value)148     inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
149 
150     /**
151      * <p>A unique, case-sensitive identifier that you provide to ensure the
152      * idempotency of the operation. An idempotent operation completes no more than one
153      * time.</p>
154      */
SetClientRequestToken(const char * value)155     inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
156 
157     /**
158      * <p>A unique, case-sensitive identifier that you provide to ensure the
159      * idempotency of the operation. An idempotent operation completes no more than one
160      * time.</p>
161      */
WithClientRequestToken(const Aws::String & value)162     inline SendPipelineExecutionStepSuccessRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
163 
164     /**
165      * <p>A unique, case-sensitive identifier that you provide to ensure the
166      * idempotency of the operation. An idempotent operation completes no more than one
167      * time.</p>
168      */
WithClientRequestToken(Aws::String && value)169     inline SendPipelineExecutionStepSuccessRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
170 
171     /**
172      * <p>A unique, case-sensitive identifier that you provide to ensure the
173      * idempotency of the operation. An idempotent operation completes no more than one
174      * time.</p>
175      */
WithClientRequestToken(const char * value)176     inline SendPipelineExecutionStepSuccessRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
177 
178   private:
179 
180     Aws::String m_callbackToken;
181     bool m_callbackTokenHasBeenSet;
182 
183     Aws::Vector<OutputParameter> m_outputParameters;
184     bool m_outputParametersHasBeenSet;
185 
186     Aws::String m_clientRequestToken;
187     bool m_clientRequestTokenHasBeenSet;
188   };
189 
190 } // namespace Model
191 } // namespace SageMaker
192 } // namespace Aws
193