AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
ExtendTrainingPlanResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/TrainingPlanExtension.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker {
25namespace Model {
27 public:
28 AWS_SAGEMAKER_API ExtendTrainingPlanResult() = default;
31
33
37 inline const Aws::Vector<TrainingPlanExtension>& GetTrainingPlanExtensions() const { return m_trainingPlanExtensions; }
38 template <typename TrainingPlanExtensionsT = Aws::Vector<TrainingPlanExtension>>
39 void SetTrainingPlanExtensions(TrainingPlanExtensionsT&& value) {
40 m_trainingPlanExtensionsHasBeenSet = true;
41 m_trainingPlanExtensions = std::forward<TrainingPlanExtensionsT>(value);
42 }
43 template <typename TrainingPlanExtensionsT = Aws::Vector<TrainingPlanExtension>>
44 ExtendTrainingPlanResult& WithTrainingPlanExtensions(TrainingPlanExtensionsT&& value) {
45 SetTrainingPlanExtensions(std::forward<TrainingPlanExtensionsT>(value));
46 return *this;
47 }
48 template <typename TrainingPlanExtensionsT = TrainingPlanExtension>
49 ExtendTrainingPlanResult& AddTrainingPlanExtensions(TrainingPlanExtensionsT&& value) {
50 m_trainingPlanExtensionsHasBeenSet = true;
51 m_trainingPlanExtensions.emplace_back(std::forward<TrainingPlanExtensionsT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetRequestId() const { return m_requestId; }
59 template <typename RequestIdT = Aws::String>
60 void SetRequestId(RequestIdT&& value) {
61 m_requestIdHasBeenSet = true;
62 m_requestId = std::forward<RequestIdT>(value);
63 }
64 template <typename RequestIdT = Aws::String>
66 SetRequestId(std::forward<RequestIdT>(value));
67 return *this;
68 }
70 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
71
72 private:
73 Aws::Vector<TrainingPlanExtension> m_trainingPlanExtensions;
74
75 Aws::String m_requestId;
76 Aws::Http::HttpResponseCode m_HttpResponseCode;
77 bool m_trainingPlanExtensionsHasBeenSet = false;
78 bool m_requestIdHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace SageMaker
83} // namespace Aws
void SetTrainingPlanExtensions(TrainingPlanExtensionsT &&value)
const Aws::Vector< TrainingPlanExtension > & GetTrainingPlanExtensions() const
AWS_SAGEMAKER_API ExtendTrainingPlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_SAGEMAKER_API ExtendTrainingPlanResult()=default
ExtendTrainingPlanResult & WithTrainingPlanExtensions(TrainingPlanExtensionsT &&value)
ExtendTrainingPlanResult & AddTrainingPlanExtensions(TrainingPlanExtensionsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ExtendTrainingPlanResult & WithRequestId(RequestIdT &&value)
AWS_SAGEMAKER_API ExtendTrainingPlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue