AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StopInferenceExperimentRequest.h
1
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/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/InferenceExperimentStopDesiredState.h>
13#include <aws/sagemaker/model/ModelVariantAction.h>
14#include <aws/sagemaker/model/ModelVariantConfig.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API StopInferenceExperimentRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "StopInferenceExperiment"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline StopInferenceExperimentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline StopInferenceExperimentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline StopInferenceExperimentRequest& WithName(const char* value) { SetName(value); return *this;}
55
57
64 inline const Aws::Map<Aws::String, ModelVariantAction>& GetModelVariantActions() const{ return m_modelVariantActions; }
65 inline bool ModelVariantActionsHasBeenSet() const { return m_modelVariantActionsHasBeenSet; }
66 inline void SetModelVariantActions(const Aws::Map<Aws::String, ModelVariantAction>& value) { m_modelVariantActionsHasBeenSet = true; m_modelVariantActions = value; }
67 inline void SetModelVariantActions(Aws::Map<Aws::String, ModelVariantAction>&& value) { m_modelVariantActionsHasBeenSet = true; m_modelVariantActions = std::move(value); }
70 inline StopInferenceExperimentRequest& AddModelVariantActions(const Aws::String& key, const ModelVariantAction& value) { m_modelVariantActionsHasBeenSet = true; m_modelVariantActions.emplace(key, value); return *this; }
71 inline StopInferenceExperimentRequest& AddModelVariantActions(Aws::String&& key, const ModelVariantAction& value) { m_modelVariantActionsHasBeenSet = true; m_modelVariantActions.emplace(std::move(key), value); return *this; }
72 inline StopInferenceExperimentRequest& AddModelVariantActions(const Aws::String& key, ModelVariantAction&& value) { m_modelVariantActionsHasBeenSet = true; m_modelVariantActions.emplace(key, std::move(value)); return *this; }
73 inline StopInferenceExperimentRequest& AddModelVariantActions(Aws::String&& key, ModelVariantAction&& value) { m_modelVariantActionsHasBeenSet = true; m_modelVariantActions.emplace(std::move(key), std::move(value)); return *this; }
74 inline StopInferenceExperimentRequest& AddModelVariantActions(const char* key, ModelVariantAction&& value) { m_modelVariantActionsHasBeenSet = true; m_modelVariantActions.emplace(key, std::move(value)); return *this; }
75 inline StopInferenceExperimentRequest& AddModelVariantActions(const char* key, const ModelVariantAction& value) { m_modelVariantActionsHasBeenSet = true; m_modelVariantActions.emplace(key, value); return *this; }
77
79
85 inline const Aws::Vector<ModelVariantConfig>& GetDesiredModelVariants() const{ return m_desiredModelVariants; }
86 inline bool DesiredModelVariantsHasBeenSet() const { return m_desiredModelVariantsHasBeenSet; }
87 inline void SetDesiredModelVariants(const Aws::Vector<ModelVariantConfig>& value) { m_desiredModelVariantsHasBeenSet = true; m_desiredModelVariants = value; }
88 inline void SetDesiredModelVariants(Aws::Vector<ModelVariantConfig>&& value) { m_desiredModelVariantsHasBeenSet = true; m_desiredModelVariants = std::move(value); }
91 inline StopInferenceExperimentRequest& AddDesiredModelVariants(const ModelVariantConfig& value) { m_desiredModelVariantsHasBeenSet = true; m_desiredModelVariants.push_back(value); return *this; }
92 inline StopInferenceExperimentRequest& AddDesiredModelVariants(ModelVariantConfig&& value) { m_desiredModelVariantsHasBeenSet = true; m_desiredModelVariants.push_back(std::move(value)); return *this; }
94
96
102 inline const InferenceExperimentStopDesiredState& GetDesiredState() const{ return m_desiredState; }
103 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
104 inline void SetDesiredState(const InferenceExperimentStopDesiredState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; }
105 inline void SetDesiredState(InferenceExperimentStopDesiredState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); }
109
111
114 inline const Aws::String& GetReason() const{ return m_reason; }
115 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
116 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
117 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
118 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
119 inline StopInferenceExperimentRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
120 inline StopInferenceExperimentRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
121 inline StopInferenceExperimentRequest& WithReason(const char* value) { SetReason(value); return *this;}
123 private:
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
128 Aws::Map<Aws::String, ModelVariantAction> m_modelVariantActions;
129 bool m_modelVariantActionsHasBeenSet = false;
130
131 Aws::Vector<ModelVariantConfig> m_desiredModelVariants;
132 bool m_desiredModelVariantsHasBeenSet = false;
133
135 bool m_desiredStateHasBeenSet = false;
136
137 Aws::String m_reason;
138 bool m_reasonHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace SageMaker
143} // namespace Aws
void SetDesiredModelVariants(const Aws::Vector< ModelVariantConfig > &value)
StopInferenceExperimentRequest & WithDesiredState(const InferenceExperimentStopDesiredState &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StopInferenceExperimentRequest & WithModelVariantActions(const Aws::Map< Aws::String, ModelVariantAction > &value)
StopInferenceExperimentRequest & WithModelVariantActions(Aws::Map< Aws::String, ModelVariantAction > &&value)
StopInferenceExperimentRequest & AddDesiredModelVariants(ModelVariantConfig &&value)
StopInferenceExperimentRequest & WithDesiredState(InferenceExperimentStopDesiredState &&value)
const Aws::Vector< ModelVariantConfig > & GetDesiredModelVariants() const
StopInferenceExperimentRequest & WithReason(Aws::String &&value)
const InferenceExperimentStopDesiredState & GetDesiredState() const
void SetModelVariantActions(Aws::Map< Aws::String, ModelVariantAction > &&value)
void SetModelVariantActions(const Aws::Map< Aws::String, ModelVariantAction > &value)
StopInferenceExperimentRequest & WithReason(const char *value)
StopInferenceExperimentRequest & WithDesiredModelVariants(const Aws::Vector< ModelVariantConfig > &value)
StopInferenceExperimentRequest & WithName(const Aws::String &value)
StopInferenceExperimentRequest & WithName(const char *value)
StopInferenceExperimentRequest & AddModelVariantActions(const Aws::String &key, const ModelVariantAction &value)
StopInferenceExperimentRequest & WithName(Aws::String &&value)
StopInferenceExperimentRequest & WithReason(const Aws::String &value)
void SetDesiredState(const InferenceExperimentStopDesiredState &value)
void SetDesiredState(InferenceExperimentStopDesiredState &&value)
StopInferenceExperimentRequest & WithDesiredModelVariants(Aws::Vector< ModelVariantConfig > &&value)
StopInferenceExperimentRequest & AddModelVariantActions(const char *key, ModelVariantAction &&value)
StopInferenceExperimentRequest & AddModelVariantActions(Aws::String &&key, ModelVariantAction &&value)
StopInferenceExperimentRequest & AddModelVariantActions(const Aws::String &key, ModelVariantAction &&value)
StopInferenceExperimentRequest & AddModelVariantActions(const char *key, const ModelVariantAction &value)
const Aws::Map< Aws::String, ModelVariantAction > & GetModelVariantActions() const
void SetDesiredModelVariants(Aws::Vector< ModelVariantConfig > &&value)
StopInferenceExperimentRequest & AddDesiredModelVariants(const ModelVariantConfig &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
StopInferenceExperimentRequest & AddModelVariantActions(Aws::String &&key, const ModelVariantAction &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector