AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateEdgePackagingJobRequest.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/sagemaker/model/EdgeOutputConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API CreateEdgePackagingJobRequest() = default;
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.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateEdgePackagingJob"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetEdgePackagingJobName() const { return m_edgePackagingJobName; }
45 inline bool EdgePackagingJobNameHasBeenSet() const { return m_edgePackagingJobNameHasBeenSet; }
46 template<typename EdgePackagingJobNameT = Aws::String>
47 void SetEdgePackagingJobName(EdgePackagingJobNameT&& value) { m_edgePackagingJobNameHasBeenSet = true; m_edgePackagingJobName = std::forward<EdgePackagingJobNameT>(value); }
48 template<typename EdgePackagingJobNameT = Aws::String>
49 CreateEdgePackagingJobRequest& WithEdgePackagingJobName(EdgePackagingJobNameT&& value) { SetEdgePackagingJobName(std::forward<EdgePackagingJobNameT>(value)); return *this;}
51
53
57 inline const Aws::String& GetCompilationJobName() const { return m_compilationJobName; }
58 inline bool CompilationJobNameHasBeenSet() const { return m_compilationJobNameHasBeenSet; }
59 template<typename CompilationJobNameT = Aws::String>
60 void SetCompilationJobName(CompilationJobNameT&& value) { m_compilationJobNameHasBeenSet = true; m_compilationJobName = std::forward<CompilationJobNameT>(value); }
61 template<typename CompilationJobNameT = Aws::String>
62 CreateEdgePackagingJobRequest& WithCompilationJobName(CompilationJobNameT&& value) { SetCompilationJobName(std::forward<CompilationJobNameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetModelName() const { return m_modelName; }
70 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
71 template<typename ModelNameT = Aws::String>
72 void SetModelName(ModelNameT&& value) { m_modelNameHasBeenSet = true; m_modelName = std::forward<ModelNameT>(value); }
73 template<typename ModelNameT = Aws::String>
74 CreateEdgePackagingJobRequest& WithModelName(ModelNameT&& value) { SetModelName(std::forward<ModelNameT>(value)); return *this;}
76
78
81 inline const Aws::String& GetModelVersion() const { return m_modelVersion; }
82 inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
83 template<typename ModelVersionT = Aws::String>
84 void SetModelVersion(ModelVersionT&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::forward<ModelVersionT>(value); }
85 template<typename ModelVersionT = Aws::String>
86 CreateEdgePackagingJobRequest& WithModelVersion(ModelVersionT&& value) { SetModelVersion(std::forward<ModelVersionT>(value)); return *this;}
88
90
94 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
95 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
96 template<typename RoleArnT = Aws::String>
97 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
98 template<typename RoleArnT = Aws::String>
99 CreateEdgePackagingJobRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
101
103
106 inline const EdgeOutputConfig& GetOutputConfig() const { return m_outputConfig; }
107 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
108 template<typename OutputConfigT = EdgeOutputConfig>
109 void SetOutputConfig(OutputConfigT&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::forward<OutputConfigT>(value); }
110 template<typename OutputConfigT = EdgeOutputConfig>
111 CreateEdgePackagingJobRequest& WithOutputConfig(OutputConfigT&& value) { SetOutputConfig(std::forward<OutputConfigT>(value)); return *this;}
113
115
119 inline const Aws::String& GetResourceKey() const { return m_resourceKey; }
120 inline bool ResourceKeyHasBeenSet() const { return m_resourceKeyHasBeenSet; }
121 template<typename ResourceKeyT = Aws::String>
122 void SetResourceKey(ResourceKeyT&& value) { m_resourceKeyHasBeenSet = true; m_resourceKey = std::forward<ResourceKeyT>(value); }
123 template<typename ResourceKeyT = Aws::String>
124 CreateEdgePackagingJobRequest& WithResourceKey(ResourceKeyT&& value) { SetResourceKey(std::forward<ResourceKeyT>(value)); return *this;}
126
128
131 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template<typename TagsT = Aws::Vector<Tag>>
134 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
135 template<typename TagsT = Aws::Vector<Tag>>
136 CreateEdgePackagingJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
137 template<typename TagsT = Tag>
138 CreateEdgePackagingJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
140 private:
141
142 Aws::String m_edgePackagingJobName;
143 bool m_edgePackagingJobNameHasBeenSet = false;
144
145 Aws::String m_compilationJobName;
146 bool m_compilationJobNameHasBeenSet = false;
147
148 Aws::String m_modelName;
149 bool m_modelNameHasBeenSet = false;
150
151 Aws::String m_modelVersion;
152 bool m_modelVersionHasBeenSet = false;
153
154 Aws::String m_roleArn;
155 bool m_roleArnHasBeenSet = false;
156
157 EdgeOutputConfig m_outputConfig;
158 bool m_outputConfigHasBeenSet = false;
159
160 Aws::String m_resourceKey;
161 bool m_resourceKeyHasBeenSet = false;
162
163 Aws::Vector<Tag> m_tags;
164 bool m_tagsHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace SageMaker
169} // namespace Aws
AWS_SAGEMAKER_API CreateEdgePackagingJobRequest()=default
CreateEdgePackagingJobRequest & WithCompilationJobName(CompilationJobNameT &&value)
CreateEdgePackagingJobRequest & WithEdgePackagingJobName(EdgePackagingJobNameT &&value)
CreateEdgePackagingJobRequest & AddTags(TagsT &&value)
CreateEdgePackagingJobRequest & WithOutputConfig(OutputConfigT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateEdgePackagingJobRequest & WithTags(TagsT &&value)
CreateEdgePackagingJobRequest & WithResourceKey(ResourceKeyT &&value)
CreateEdgePackagingJobRequest & WithModelName(ModelNameT &&value)
CreateEdgePackagingJobRequest & WithModelVersion(ModelVersionT &&value)
CreateEdgePackagingJobRequest & WithRoleArn(RoleArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector