/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents an input or output artifact of a trial component. You specify
* Examples of input artifacts are datasets, algorithms,
* hyperparameters, source code, and instance types. Examples of output artifacts
* are metrics, snapshots, logs, and images.TrialComponentArtifact
as part of the InputArtifacts
* and OutputArtifacts
parameters in the CreateTrialComponent
* request.See Also:
AWS
* API Reference
The media type of the artifact, which indicates the type of data in the * artifact file. The media type consists of a type and a subtype * concatenated with a slash (/) character, for example, text/csv, image/jpeg, and * s3/uri. The type specifies the category of the media. The subtype specifies the * kind of data.
*/ inline const Aws::String& GetMediaType() const{ return m_mediaType; } /** *The media type of the artifact, which indicates the type of data in the * artifact file. The media type consists of a type and a subtype * concatenated with a slash (/) character, for example, text/csv, image/jpeg, and * s3/uri. The type specifies the category of the media. The subtype specifies the * kind of data.
*/ inline bool MediaTypeHasBeenSet() const { return m_mediaTypeHasBeenSet; } /** *The media type of the artifact, which indicates the type of data in the * artifact file. The media type consists of a type and a subtype * concatenated with a slash (/) character, for example, text/csv, image/jpeg, and * s3/uri. The type specifies the category of the media. The subtype specifies the * kind of data.
*/ inline void SetMediaType(const Aws::String& value) { m_mediaTypeHasBeenSet = true; m_mediaType = value; } /** *The media type of the artifact, which indicates the type of data in the * artifact file. The media type consists of a type and a subtype * concatenated with a slash (/) character, for example, text/csv, image/jpeg, and * s3/uri. The type specifies the category of the media. The subtype specifies the * kind of data.
*/ inline void SetMediaType(Aws::String&& value) { m_mediaTypeHasBeenSet = true; m_mediaType = std::move(value); } /** *The media type of the artifact, which indicates the type of data in the * artifact file. The media type consists of a type and a subtype * concatenated with a slash (/) character, for example, text/csv, image/jpeg, and * s3/uri. The type specifies the category of the media. The subtype specifies the * kind of data.
*/ inline void SetMediaType(const char* value) { m_mediaTypeHasBeenSet = true; m_mediaType.assign(value); } /** *The media type of the artifact, which indicates the type of data in the * artifact file. The media type consists of a type and a subtype * concatenated with a slash (/) character, for example, text/csv, image/jpeg, and * s3/uri. The type specifies the category of the media. The subtype specifies the * kind of data.
*/ inline TrialComponentArtifact& WithMediaType(const Aws::String& value) { SetMediaType(value); return *this;} /** *The media type of the artifact, which indicates the type of data in the * artifact file. The media type consists of a type and a subtype * concatenated with a slash (/) character, for example, text/csv, image/jpeg, and * s3/uri. The type specifies the category of the media. The subtype specifies the * kind of data.
*/ inline TrialComponentArtifact& WithMediaType(Aws::String&& value) { SetMediaType(std::move(value)); return *this;} /** *The media type of the artifact, which indicates the type of data in the * artifact file. The media type consists of a type and a subtype * concatenated with a slash (/) character, for example, text/csv, image/jpeg, and * s3/uri. The type specifies the category of the media. The subtype specifies the * kind of data.
*/ inline TrialComponentArtifact& WithMediaType(const char* value) { SetMediaType(value); return *this;} /** *The location of the artifact.
*/ inline const Aws::String& GetValue() const{ return m_value; } /** *The location of the artifact.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The location of the artifact.
*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *The location of the artifact.
*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *The location of the artifact.
*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *The location of the artifact.
*/ inline TrialComponentArtifact& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *The location of the artifact.
*/ inline TrialComponentArtifact& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *The location of the artifact.
*/ inline TrialComponentArtifact& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_mediaType; bool m_mediaTypeHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws