AWS SDK for C++  1.8.95
AWS SDK for C++
CreateModelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace SageMaker
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateModel"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
44  inline const Aws::String& GetModelName() const{ return m_modelName; }
45 
49  inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
50 
54  inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
55 
59  inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
60 
64  inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
65 
69  inline CreateModelRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
70 
74  inline CreateModelRequest& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
75 
79  inline CreateModelRequest& WithModelName(const char* value) { SetModelName(value); return *this;}
80 
81 
87  inline const ContainerDefinition& GetPrimaryContainer() const{ return m_primaryContainer; }
88 
94  inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; }
95 
101  inline void SetPrimaryContainer(const ContainerDefinition& value) { m_primaryContainerHasBeenSet = true; m_primaryContainer = value; }
102 
108  inline void SetPrimaryContainer(ContainerDefinition&& value) { m_primaryContainerHasBeenSet = true; m_primaryContainer = std::move(value); }
109 
115  inline CreateModelRequest& WithPrimaryContainer(const ContainerDefinition& value) { SetPrimaryContainer(value); return *this;}
116 
122  inline CreateModelRequest& WithPrimaryContainer(ContainerDefinition&& value) { SetPrimaryContainer(std::move(value)); return *this;}
123 
124 
128  inline const Aws::Vector<ContainerDefinition>& GetContainers() const{ return m_containers; }
129 
133  inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
134 
138  inline void SetContainers(const Aws::Vector<ContainerDefinition>& value) { m_containersHasBeenSet = true; m_containers = value; }
139 
143  inline void SetContainers(Aws::Vector<ContainerDefinition>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
144 
148  inline CreateModelRequest& WithContainers(const Aws::Vector<ContainerDefinition>& value) { SetContainers(value); return *this;}
149 
153  inline CreateModelRequest& WithContainers(Aws::Vector<ContainerDefinition>&& value) { SetContainers(std::move(value)); return *this;}
154 
158  inline CreateModelRequest& AddContainers(const ContainerDefinition& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
159 
163  inline CreateModelRequest& AddContainers(ContainerDefinition&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
164 
165 
176  inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
177 
188  inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
189 
200  inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
201 
212  inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
213 
224  inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
225 
236  inline CreateModelRequest& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
237 
248  inline CreateModelRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
249 
260  inline CreateModelRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
261 
262 
269  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
270 
277  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
278 
285  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
286 
293  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
294 
301  inline CreateModelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
302 
309  inline CreateModelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
310 
317  inline CreateModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
318 
325  inline CreateModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
326 
327 
338  inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
339 
350  inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
351 
362  inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
363 
374  inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
375 
386  inline CreateModelRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
387 
398  inline CreateModelRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
399 
400 
405  inline bool GetEnableNetworkIsolation() const{ return m_enableNetworkIsolation; }
406 
411  inline bool EnableNetworkIsolationHasBeenSet() const { return m_enableNetworkIsolationHasBeenSet; }
412 
417  inline void SetEnableNetworkIsolation(bool value) { m_enableNetworkIsolationHasBeenSet = true; m_enableNetworkIsolation = value; }
418 
423  inline CreateModelRequest& WithEnableNetworkIsolation(bool value) { SetEnableNetworkIsolation(value); return *this;}
424 
425  private:
426 
427  Aws::String m_modelName;
428  bool m_modelNameHasBeenSet;
429 
430  ContainerDefinition m_primaryContainer;
431  bool m_primaryContainerHasBeenSet;
432 
434  bool m_containersHasBeenSet;
435 
436  Aws::String m_executionRoleArn;
437  bool m_executionRoleArnHasBeenSet;
438 
439  Aws::Vector<Tag> m_tags;
440  bool m_tagsHasBeenSet;
441 
442  VpcConfig m_vpcConfig;
443  bool m_vpcConfigHasBeenSet;
444 
445  bool m_enableNetworkIsolation;
446  bool m_enableNetworkIsolationHasBeenSet;
447  };
448 
449 } // namespace Model
450 } // namespace SageMaker
451 } // namespace Aws
const ContainerDefinition & GetPrimaryContainer() const
const Aws::Vector< Tag > & GetTags() const
#define AWS_SAGEMAKER_API
CreateModelRequest & WithContainers(const Aws::Vector< ContainerDefinition > &value)
void SetExecutionRoleArn(const Aws::String &value)
CreateModelRequest & WithTags(const Aws::Vector< Tag > &value)
CreateModelRequest & AddTags(const Tag &value)
CreateModelRequest & WithModelName(const char *value)
CreateModelRequest & WithPrimaryContainer(ContainerDefinition &&value)
CreateModelRequest & WithEnableNetworkIsolation(bool value)
void SetContainers(Aws::Vector< ContainerDefinition > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetModelName(const Aws::String &value)
const Aws::Vector< ContainerDefinition > & GetContainers() const
CreateModelRequest & WithVpcConfig(const VpcConfig &value)
CreateModelRequest & WithModelName(const Aws::String &value)
CreateModelRequest & AddContainers(const ContainerDefinition &value)
const Aws::String & GetExecutionRoleArn() const
CreateModelRequest & WithModelName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetVpcConfig(const VpcConfig &value)
CreateModelRequest & WithContainers(Aws::Vector< ContainerDefinition > &&value)
void SetPrimaryContainer(ContainerDefinition &&value)
CreateModelRequest & WithVpcConfig(VpcConfig &&value)
void SetContainers(const Aws::Vector< ContainerDefinition > &value)
CreateModelRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetModelName() const
void SetPrimaryContainer(const ContainerDefinition &value)
void SetTags(Aws::Vector< Tag > &&value)
CreateModelRequest & WithPrimaryContainer(const ContainerDefinition &value)
CreateModelRequest & WithExecutionRoleArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateModelRequest & WithExecutionRoleArn(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateModelRequest & WithExecutionRoleArn(const char *value)
CreateModelRequest & AddContainers(ContainerDefinition &&value)
CreateModelRequest & AddTags(Tag &&value)