/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

The properties of a model as returned by the Search * API.

See Also:

AWS API * Reference

*/ class Model { public: AWS_SAGEMAKER_API Model(); AWS_SAGEMAKER_API Model(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Model& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the model.

*/ inline const Aws::String& GetModelName() const{ return m_modelName; } /** *

The name of the model.

*/ inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; } /** *

The name of the model.

*/ inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; } /** *

The name of the model.

*/ inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); } /** *

The name of the model.

*/ inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); } /** *

The name of the model.

*/ inline Model& WithModelName(const Aws::String& value) { SetModelName(value); return *this;} /** *

The name of the model.

*/ inline Model& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;} /** *

The name of the model.

*/ inline Model& WithModelName(const char* value) { SetModelName(value); return *this;} inline const ContainerDefinition& GetPrimaryContainer() const{ return m_primaryContainer; } inline bool PrimaryContainerHasBeenSet() const { return m_primaryContainerHasBeenSet; } inline void SetPrimaryContainer(const ContainerDefinition& value) { m_primaryContainerHasBeenSet = true; m_primaryContainer = value; } inline void SetPrimaryContainer(ContainerDefinition&& value) { m_primaryContainerHasBeenSet = true; m_primaryContainer = std::move(value); } inline Model& WithPrimaryContainer(const ContainerDefinition& value) { SetPrimaryContainer(value); return *this;} inline Model& WithPrimaryContainer(ContainerDefinition&& value) { SetPrimaryContainer(std::move(value)); return *this;} /** *

The containers in the inference pipeline.

*/ inline const Aws::Vector& GetContainers() const{ return m_containers; } /** *

The containers in the inference pipeline.

*/ inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; } /** *

The containers in the inference pipeline.

*/ inline void SetContainers(const Aws::Vector& value) { m_containersHasBeenSet = true; m_containers = value; } /** *

The containers in the inference pipeline.

*/ inline void SetContainers(Aws::Vector&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); } /** *

The containers in the inference pipeline.

*/ inline Model& WithContainers(const Aws::Vector& value) { SetContainers(value); return *this;} /** *

The containers in the inference pipeline.

*/ inline Model& WithContainers(Aws::Vector&& value) { SetContainers(std::move(value)); return *this;} /** *

The containers in the inference pipeline.

*/ inline Model& AddContainers(const ContainerDefinition& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; } /** *

The containers in the inference pipeline.

*/ inline Model& AddContainers(ContainerDefinition&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; } inline const InferenceExecutionConfig& GetInferenceExecutionConfig() const{ return m_inferenceExecutionConfig; } inline bool InferenceExecutionConfigHasBeenSet() const { return m_inferenceExecutionConfigHasBeenSet; } inline void SetInferenceExecutionConfig(const InferenceExecutionConfig& value) { m_inferenceExecutionConfigHasBeenSet = true; m_inferenceExecutionConfig = value; } inline void SetInferenceExecutionConfig(InferenceExecutionConfig&& value) { m_inferenceExecutionConfigHasBeenSet = true; m_inferenceExecutionConfig = std::move(value); } inline Model& WithInferenceExecutionConfig(const InferenceExecutionConfig& value) { SetInferenceExecutionConfig(value); return *this;} inline Model& WithInferenceExecutionConfig(InferenceExecutionConfig&& value) { SetInferenceExecutionConfig(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role that you specified for the * model.

*/ inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; } /** *

The Amazon Resource Name (ARN) of the IAM role that you specified for the * model.

*/ inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the IAM role that you specified for the * model.

*/ inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; } /** *

The Amazon Resource Name (ARN) of the IAM role that you specified for the * model.

*/ inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAM role that you specified for the * model.

*/ inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAM role that you specified for the * model.

*/ inline Model& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role that you specified for the * model.

*/ inline Model& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role that you specified for the * model.

*/ inline Model& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;} inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; } inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; } inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; } inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); } inline Model& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;} inline Model& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;} /** *

A timestamp that indicates when the model was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

A timestamp that indicates when the model was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

A timestamp that indicates when the model was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

A timestamp that indicates when the model was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

A timestamp that indicates when the model was created.

*/ inline Model& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

A timestamp that indicates when the model was created.

*/ inline Model& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the model.

*/ inline const Aws::String& GetModelArn() const{ return m_modelArn; } /** *

The Amazon Resource Name (ARN) of the model.

*/ inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the model.

*/ inline void SetModelArn(const Aws::String& value) { m_modelArnHasBeenSet = true; m_modelArn = value; } /** *

The Amazon Resource Name (ARN) of the model.

*/ inline void SetModelArn(Aws::String&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the model.

*/ inline void SetModelArn(const char* value) { m_modelArnHasBeenSet = true; m_modelArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the model.

*/ inline Model& WithModelArn(const Aws::String& value) { SetModelArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the model.

*/ inline Model& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the model.

*/ inline Model& WithModelArn(const char* value) { SetModelArn(value); return *this;} /** *

Isolates the model container. No inbound or outbound network calls can be * made to or from the model container.

*/ inline bool GetEnableNetworkIsolation() const{ return m_enableNetworkIsolation; } /** *

Isolates the model container. No inbound or outbound network calls can be * made to or from the model container.

*/ inline bool EnableNetworkIsolationHasBeenSet() const { return m_enableNetworkIsolationHasBeenSet; } /** *

Isolates the model container. No inbound or outbound network calls can be * made to or from the model container.

*/ inline void SetEnableNetworkIsolation(bool value) { m_enableNetworkIsolationHasBeenSet = true; m_enableNetworkIsolation = value; } /** *

Isolates the model container. No inbound or outbound network calls can be * made to or from the model container.

*/ inline Model& WithEnableNetworkIsolation(bool value) { SetEnableNetworkIsolation(value); return *this;} /** *

A list of key-value pairs associated with the model. For more information, * see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of key-value pairs associated with the model. For more information, * see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of key-value pairs associated with the model. For more information, * see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of key-value pairs associated with the model. For more information, * see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of key-value pairs associated with the model. For more information, * see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline Model& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of key-value pairs associated with the model. For more information, * see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline Model& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of key-value pairs associated with the model. For more information, * see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline Model& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of key-value pairs associated with the model. For more information, * see Tagging * Amazon Web Services resources in the Amazon Web Services General * Reference Guide.

*/ inline Model& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

A set of recommended deployment configurations for the model.

*/ inline const DeploymentRecommendation& GetDeploymentRecommendation() const{ return m_deploymentRecommendation; } /** *

A set of recommended deployment configurations for the model.

*/ inline bool DeploymentRecommendationHasBeenSet() const { return m_deploymentRecommendationHasBeenSet; } /** *

A set of recommended deployment configurations for the model.

*/ inline void SetDeploymentRecommendation(const DeploymentRecommendation& value) { m_deploymentRecommendationHasBeenSet = true; m_deploymentRecommendation = value; } /** *

A set of recommended deployment configurations for the model.

*/ inline void SetDeploymentRecommendation(DeploymentRecommendation&& value) { m_deploymentRecommendationHasBeenSet = true; m_deploymentRecommendation = std::move(value); } /** *

A set of recommended deployment configurations for the model.

*/ inline Model& WithDeploymentRecommendation(const DeploymentRecommendation& value) { SetDeploymentRecommendation(value); return *this;} /** *

A set of recommended deployment configurations for the model.

*/ inline Model& WithDeploymentRecommendation(DeploymentRecommendation&& value) { SetDeploymentRecommendation(std::move(value)); return *this;} private: Aws::String m_modelName; bool m_modelNameHasBeenSet = false; ContainerDefinition m_primaryContainer; bool m_primaryContainerHasBeenSet = false; Aws::Vector m_containers; bool m_containersHasBeenSet = false; InferenceExecutionConfig m_inferenceExecutionConfig; bool m_inferenceExecutionConfigHasBeenSet = false; Aws::String m_executionRoleArn; bool m_executionRoleArnHasBeenSet = false; VpcConfig m_vpcConfig; bool m_vpcConfigHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::String m_modelArn; bool m_modelArnHasBeenSet = false; bool m_enableNetworkIsolation; bool m_enableNetworkIsolationHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; DeploymentRecommendation m_deploymentRecommendation; bool m_deploymentRecommendationHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws