/** * 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 #include #include namespace Aws { namespace SageMaker { namespace Model { /** */ class CreateTrialComponentRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API CreateTrialComponentRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateTrialComponent"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the component. The name must be unique in your Amazon Web * Services account and is not case-sensitive.

*/ inline const Aws::String& GetTrialComponentName() const{ return m_trialComponentName; } /** *

The name of the component. The name must be unique in your Amazon Web * Services account and is not case-sensitive.

*/ inline bool TrialComponentNameHasBeenSet() const { return m_trialComponentNameHasBeenSet; } /** *

The name of the component. The name must be unique in your Amazon Web * Services account and is not case-sensitive.

*/ inline void SetTrialComponentName(const Aws::String& value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName = value; } /** *

The name of the component. The name must be unique in your Amazon Web * Services account and is not case-sensitive.

*/ inline void SetTrialComponentName(Aws::String&& value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName = std::move(value); } /** *

The name of the component. The name must be unique in your Amazon Web * Services account and is not case-sensitive.

*/ inline void SetTrialComponentName(const char* value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName.assign(value); } /** *

The name of the component. The name must be unique in your Amazon Web * Services account and is not case-sensitive.

*/ inline CreateTrialComponentRequest& WithTrialComponentName(const Aws::String& value) { SetTrialComponentName(value); return *this;} /** *

The name of the component. The name must be unique in your Amazon Web * Services account and is not case-sensitive.

*/ inline CreateTrialComponentRequest& WithTrialComponentName(Aws::String&& value) { SetTrialComponentName(std::move(value)); return *this;} /** *

The name of the component. The name must be unique in your Amazon Web * Services account and is not case-sensitive.

*/ inline CreateTrialComponentRequest& WithTrialComponentName(const char* value) { SetTrialComponentName(value); return *this;} /** *

The name of the component as displayed. The name doesn't need to be unique. * If DisplayName isn't specified, TrialComponentName is * displayed.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The name of the component as displayed. The name doesn't need to be unique. * If DisplayName isn't specified, TrialComponentName is * displayed.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The name of the component as displayed. The name doesn't need to be unique. * If DisplayName isn't specified, TrialComponentName is * displayed.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The name of the component as displayed. The name doesn't need to be unique. * If DisplayName isn't specified, TrialComponentName is * displayed.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The name of the component as displayed. The name doesn't need to be unique. * If DisplayName isn't specified, TrialComponentName is * displayed.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The name of the component as displayed. The name doesn't need to be unique. * If DisplayName isn't specified, TrialComponentName is * displayed.

*/ inline CreateTrialComponentRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The name of the component as displayed. The name doesn't need to be unique. * If DisplayName isn't specified, TrialComponentName is * displayed.

*/ inline CreateTrialComponentRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The name of the component as displayed. The name doesn't need to be unique. * If DisplayName isn't specified, TrialComponentName is * displayed.

*/ inline CreateTrialComponentRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The status of the component. States include:

  • InProgress

    *
  • Completed

  • Failed

*/ inline const TrialComponentStatus& GetStatus() const{ return m_status; } /** *

The status of the component. States include:

  • InProgress

    *
  • Completed

  • Failed

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the component. States include:

  • InProgress

    *
  • Completed

  • Failed

*/ inline void SetStatus(const TrialComponentStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the component. States include:

  • InProgress

    *
  • Completed

  • Failed

*/ inline void SetStatus(TrialComponentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the component. States include:

  • InProgress

    *
  • Completed

  • Failed

*/ inline CreateTrialComponentRequest& WithStatus(const TrialComponentStatus& value) { SetStatus(value); return *this;} /** *

The status of the component. States include:

  • InProgress

    *
  • Completed

  • Failed

*/ inline CreateTrialComponentRequest& WithStatus(TrialComponentStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

When the component started.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

When the component started.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

When the component started.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

When the component started.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

When the component started.

*/ inline CreateTrialComponentRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

When the component started.

*/ inline CreateTrialComponentRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

When the component ended.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

When the component ended.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

When the component ended.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

When the component ended.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

When the component ended.

*/ inline CreateTrialComponentRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

When the component ended.

*/ inline CreateTrialComponentRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The hyperparameters for the component.

*/ inline const Aws::Map& GetParameters() const{ return m_parameters; } /** *

The hyperparameters for the component.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

The hyperparameters for the component.

*/ inline void SetParameters(const Aws::Map& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

The hyperparameters for the component.

*/ inline void SetParameters(Aws::Map&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

The hyperparameters for the component.

*/ inline CreateTrialComponentRequest& WithParameters(const Aws::Map& value) { SetParameters(value); return *this;} /** *

The hyperparameters for the component.

*/ inline CreateTrialComponentRequest& WithParameters(Aws::Map&& value) { SetParameters(std::move(value)); return *this;} /** *

The hyperparameters for the component.

*/ inline CreateTrialComponentRequest& AddParameters(const Aws::String& key, const TrialComponentParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

The hyperparameters for the component.

*/ inline CreateTrialComponentRequest& AddParameters(Aws::String&& key, const TrialComponentParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

The hyperparameters for the component.

*/ inline CreateTrialComponentRequest& AddParameters(const Aws::String& key, TrialComponentParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

The hyperparameters for the component.

*/ inline CreateTrialComponentRequest& AddParameters(Aws::String&& key, TrialComponentParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; } /** *

The hyperparameters for the component.

*/ inline CreateTrialComponentRequest& AddParameters(const char* key, TrialComponentParameterValue&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

The hyperparameters for the component.

*/ inline CreateTrialComponentRequest& AddParameters(const char* key, const TrialComponentParameterValue& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

The input artifacts for the component. Examples of input artifacts are * datasets, algorithms, hyperparameters, source code, and instance types.

*/ inline const Aws::Map& GetInputArtifacts() const{ return m_inputArtifacts; } /** *

The input artifacts for the component. Examples of input artifacts are * datasets, algorithms, hyperparameters, source code, and instance types.

*/ inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; } /** *

The input artifacts for the component. Examples of input artifacts are * datasets, algorithms, hyperparameters, source code, and instance types.

*/ inline void SetInputArtifacts(const Aws::Map& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = value; } /** *

The input artifacts for the component. Examples of input artifacts are * datasets, algorithms, hyperparameters, source code, and instance types.

*/ inline void SetInputArtifacts(Aws::Map&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = std::move(value); } /** *

The input artifacts for the component. Examples of input artifacts are * datasets, algorithms, hyperparameters, source code, and instance types.

*/ inline CreateTrialComponentRequest& WithInputArtifacts(const Aws::Map& value) { SetInputArtifacts(value); return *this;} /** *

The input artifacts for the component. Examples of input artifacts are * datasets, algorithms, hyperparameters, source code, and instance types.

*/ inline CreateTrialComponentRequest& WithInputArtifacts(Aws::Map&& value) { SetInputArtifacts(std::move(value)); return *this;} /** *

The input artifacts for the component. Examples of input artifacts are * datasets, algorithms, hyperparameters, source code, and instance types.

*/ inline CreateTrialComponentRequest& AddInputArtifacts(const Aws::String& key, const TrialComponentArtifact& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.emplace(key, value); return *this; } /** *

The input artifacts for the component. Examples of input artifacts are * datasets, algorithms, hyperparameters, source code, and instance types.

*/ inline CreateTrialComponentRequest& AddInputArtifacts(Aws::String&& key, const TrialComponentArtifact& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.emplace(std::move(key), value); return *this; } /** *

The input artifacts for the component. Examples of input artifacts are * datasets, algorithms, hyperparameters, source code, and instance types.

*/ inline CreateTrialComponentRequest& AddInputArtifacts(const Aws::String& key, TrialComponentArtifact&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.emplace(key, std::move(value)); return *this; } /** *

The input artifacts for the component. Examples of input artifacts are * datasets, algorithms, hyperparameters, source code, and instance types.

*/ inline CreateTrialComponentRequest& AddInputArtifacts(Aws::String&& key, TrialComponentArtifact&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.emplace(std::move(key), std::move(value)); return *this; } /** *

The input artifacts for the component. Examples of input artifacts are * datasets, algorithms, hyperparameters, source code, and instance types.

*/ inline CreateTrialComponentRequest& AddInputArtifacts(const char* key, TrialComponentArtifact&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.emplace(key, std::move(value)); return *this; } /** *

The input artifacts for the component. Examples of input artifacts are * datasets, algorithms, hyperparameters, source code, and instance types.

*/ inline CreateTrialComponentRequest& AddInputArtifacts(const char* key, const TrialComponentArtifact& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.emplace(key, value); return *this; } /** *

The output artifacts for the component. Examples of output artifacts are * metrics, snapshots, logs, and images.

*/ inline const Aws::Map& GetOutputArtifacts() const{ return m_outputArtifacts; } /** *

The output artifacts for the component. Examples of output artifacts are * metrics, snapshots, logs, and images.

*/ inline bool OutputArtifactsHasBeenSet() const { return m_outputArtifactsHasBeenSet; } /** *

The output artifacts for the component. Examples of output artifacts are * metrics, snapshots, logs, and images.

*/ inline void SetOutputArtifacts(const Aws::Map& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts = value; } /** *

The output artifacts for the component. Examples of output artifacts are * metrics, snapshots, logs, and images.

*/ inline void SetOutputArtifacts(Aws::Map&& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts = std::move(value); } /** *

The output artifacts for the component. Examples of output artifacts are * metrics, snapshots, logs, and images.

*/ inline CreateTrialComponentRequest& WithOutputArtifacts(const Aws::Map& value) { SetOutputArtifacts(value); return *this;} /** *

The output artifacts for the component. Examples of output artifacts are * metrics, snapshots, logs, and images.

*/ inline CreateTrialComponentRequest& WithOutputArtifacts(Aws::Map&& value) { SetOutputArtifacts(std::move(value)); return *this;} /** *

The output artifacts for the component. Examples of output artifacts are * metrics, snapshots, logs, and images.

*/ inline CreateTrialComponentRequest& AddOutputArtifacts(const Aws::String& key, const TrialComponentArtifact& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts.emplace(key, value); return *this; } /** *

The output artifacts for the component. Examples of output artifacts are * metrics, snapshots, logs, and images.

*/ inline CreateTrialComponentRequest& AddOutputArtifacts(Aws::String&& key, const TrialComponentArtifact& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts.emplace(std::move(key), value); return *this; } /** *

The output artifacts for the component. Examples of output artifacts are * metrics, snapshots, logs, and images.

*/ inline CreateTrialComponentRequest& AddOutputArtifacts(const Aws::String& key, TrialComponentArtifact&& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts.emplace(key, std::move(value)); return *this; } /** *

The output artifacts for the component. Examples of output artifacts are * metrics, snapshots, logs, and images.

*/ inline CreateTrialComponentRequest& AddOutputArtifacts(Aws::String&& key, TrialComponentArtifact&& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts.emplace(std::move(key), std::move(value)); return *this; } /** *

The output artifacts for the component. Examples of output artifacts are * metrics, snapshots, logs, and images.

*/ inline CreateTrialComponentRequest& AddOutputArtifacts(const char* key, TrialComponentArtifact&& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts.emplace(key, std::move(value)); return *this; } /** *

The output artifacts for the component. Examples of output artifacts are * metrics, snapshots, logs, and images.

*/ inline CreateTrialComponentRequest& AddOutputArtifacts(const char* key, const TrialComponentArtifact& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts.emplace(key, value); return *this; } inline const MetadataProperties& GetMetadataProperties() const{ return m_metadataProperties; } inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; } inline void SetMetadataProperties(const MetadataProperties& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = value; } inline void SetMetadataProperties(MetadataProperties&& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = std::move(value); } inline CreateTrialComponentRequest& WithMetadataProperties(const MetadataProperties& value) { SetMetadataProperties(value); return *this;} inline CreateTrialComponentRequest& WithMetadataProperties(MetadataProperties&& value) { SetMetadataProperties(std::move(value)); return *this;} /** *

A list of tags to associate with the component. You can use Search * API to search on the tags.

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

A list of tags to associate with the component. You can use Search * API to search on the tags.

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

A list of tags to associate with the component. You can use Search * API to search on the tags.

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

A list of tags to associate with the component. You can use Search * API to search on the tags.

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

A list of tags to associate with the component. You can use Search * API to search on the tags.

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

A list of tags to associate with the component. You can use Search * API to search on the tags.

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

A list of tags to associate with the component. You can use Search * API to search on the tags.

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

A list of tags to associate with the component. You can use Search * API to search on the tags.

*/ inline CreateTrialComponentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_trialComponentName; bool m_trialComponentNameHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; TrialComponentStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::Map m_parameters; bool m_parametersHasBeenSet = false; Aws::Map m_inputArtifacts; bool m_inputArtifactsHasBeenSet = false; Aws::Map m_outputArtifacts; bool m_outputArtifactsHasBeenSet = false; MetadataProperties m_metadataProperties; bool m_metadataPropertiesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws