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 <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace SageMaker
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_SAGEMAKER_API SendPipelineExecutionStepFailureRequest : public SageMakerRequest
23   {
24   public:
25     SendPipelineExecutionStepFailureRequest();
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 "SendPipelineExecutionStepFailure"; }
32 
33     Aws::String SerializePayload() const override;
34 
35     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
37 
38     /**
39      * <p>The pipeline generated token from the Amazon SQS queue.</p>
40      */
GetCallbackToken()41     inline const Aws::String& GetCallbackToken() const{ return m_callbackToken; }
42 
43     /**
44      * <p>The pipeline generated token from the Amazon SQS queue.</p>
45      */
CallbackTokenHasBeenSet()46     inline bool CallbackTokenHasBeenSet() const { return m_callbackTokenHasBeenSet; }
47 
48     /**
49      * <p>The pipeline generated token from the Amazon SQS queue.</p>
50      */
SetCallbackToken(const Aws::String & value)51     inline void SetCallbackToken(const Aws::String& value) { m_callbackTokenHasBeenSet = true; m_callbackToken = value; }
52 
53     /**
54      * <p>The pipeline generated token from the Amazon SQS queue.</p>
55      */
SetCallbackToken(Aws::String && value)56     inline void SetCallbackToken(Aws::String&& value) { m_callbackTokenHasBeenSet = true; m_callbackToken = std::move(value); }
57 
58     /**
59      * <p>The pipeline generated token from the Amazon SQS queue.</p>
60      */
SetCallbackToken(const char * value)61     inline void SetCallbackToken(const char* value) { m_callbackTokenHasBeenSet = true; m_callbackToken.assign(value); }
62 
63     /**
64      * <p>The pipeline generated token from the Amazon SQS queue.</p>
65      */
WithCallbackToken(const Aws::String & value)66     inline SendPipelineExecutionStepFailureRequest& WithCallbackToken(const Aws::String& value) { SetCallbackToken(value); return *this;}
67 
68     /**
69      * <p>The pipeline generated token from the Amazon SQS queue.</p>
70      */
WithCallbackToken(Aws::String && value)71     inline SendPipelineExecutionStepFailureRequest& WithCallbackToken(Aws::String&& value) { SetCallbackToken(std::move(value)); return *this;}
72 
73     /**
74      * <p>The pipeline generated token from the Amazon SQS queue.</p>
75      */
WithCallbackToken(const char * value)76     inline SendPipelineExecutionStepFailureRequest& WithCallbackToken(const char* value) { SetCallbackToken(value); return *this;}
77 
78 
79     /**
80      * <p>A message describing why the step failed.</p>
81      */
GetFailureReason()82     inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
83 
84     /**
85      * <p>A message describing why the step failed.</p>
86      */
FailureReasonHasBeenSet()87     inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
88 
89     /**
90      * <p>A message describing why the step failed.</p>
91      */
SetFailureReason(const Aws::String & value)92     inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
93 
94     /**
95      * <p>A message describing why the step failed.</p>
96      */
SetFailureReason(Aws::String && value)97     inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
98 
99     /**
100      * <p>A message describing why the step failed.</p>
101      */
SetFailureReason(const char * value)102     inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
103 
104     /**
105      * <p>A message describing why the step failed.</p>
106      */
WithFailureReason(const Aws::String & value)107     inline SendPipelineExecutionStepFailureRequest& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
108 
109     /**
110      * <p>A message describing why the step failed.</p>
111      */
WithFailureReason(Aws::String && value)112     inline SendPipelineExecutionStepFailureRequest& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
113 
114     /**
115      * <p>A message describing why the step failed.</p>
116      */
WithFailureReason(const char * value)117     inline SendPipelineExecutionStepFailureRequest& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
118 
119 
120     /**
121      * <p>A unique, case-sensitive identifier that you provide to ensure the
122      * idempotency of the operation. An idempotent operation completes no more than one
123      * time.</p>
124      */
GetClientRequestToken()125     inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
126 
127     /**
128      * <p>A unique, case-sensitive identifier that you provide to ensure the
129      * idempotency of the operation. An idempotent operation completes no more than one
130      * time.</p>
131      */
ClientRequestTokenHasBeenSet()132     inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
133 
134     /**
135      * <p>A unique, case-sensitive identifier that you provide to ensure the
136      * idempotency of the operation. An idempotent operation completes no more than one
137      * time.</p>
138      */
SetClientRequestToken(const Aws::String & value)139     inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
140 
141     /**
142      * <p>A unique, case-sensitive identifier that you provide to ensure the
143      * idempotency of the operation. An idempotent operation completes no more than one
144      * time.</p>
145      */
SetClientRequestToken(Aws::String && value)146     inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
147 
148     /**
149      * <p>A unique, case-sensitive identifier that you provide to ensure the
150      * idempotency of the operation. An idempotent operation completes no more than one
151      * time.</p>
152      */
SetClientRequestToken(const char * value)153     inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
154 
155     /**
156      * <p>A unique, case-sensitive identifier that you provide to ensure the
157      * idempotency of the operation. An idempotent operation completes no more than one
158      * time.</p>
159      */
WithClientRequestToken(const Aws::String & value)160     inline SendPipelineExecutionStepFailureRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
161 
162     /**
163      * <p>A unique, case-sensitive identifier that you provide to ensure the
164      * idempotency of the operation. An idempotent operation completes no more than one
165      * time.</p>
166      */
WithClientRequestToken(Aws::String && value)167     inline SendPipelineExecutionStepFailureRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
168 
169     /**
170      * <p>A unique, case-sensitive identifier that you provide to ensure the
171      * idempotency of the operation. An idempotent operation completes no more than one
172      * time.</p>
173      */
WithClientRequestToken(const char * value)174     inline SendPipelineExecutionStepFailureRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
175 
176   private:
177 
178     Aws::String m_callbackToken;
179     bool m_callbackTokenHasBeenSet;
180 
181     Aws::String m_failureReason;
182     bool m_failureReasonHasBeenSet;
183 
184     Aws::String m_clientRequestToken;
185     bool m_clientRequestTokenHasBeenSet;
186   };
187 
188 } // namespace Model
189 } // namespace SageMaker
190 } // namespace Aws
191