This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeTrialComponentResult.h

616 lines
22 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sagemaker/SageMaker_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sagemaker/model/TrialComponentSource.h>
#include <aws/sagemaker/model/TrialComponentStatus.h>
#include <aws/core/utils/DateTime.h>
#include <aws/sagemaker/model/UserContext.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sagemaker/model/TrialComponentParameterValue.h>
#include <aws/sagemaker/model/TrialComponentArtifact.h>
#include <aws/sagemaker/model/TrialComponentMetricSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SageMaker
{
namespace Model
{
class AWS_SAGEMAKER_API DescribeTrialComponentResult
{
public:
DescribeTrialComponentResult();
DescribeTrialComponentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeTrialComponentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The name of the trial component.</p>
*/
inline const Aws::String& GetTrialComponentName() const{ return m_trialComponentName; }
/**
* <p>The name of the trial component.</p>
*/
inline void SetTrialComponentName(const Aws::String& value) { m_trialComponentName = value; }
/**
* <p>The name of the trial component.</p>
*/
inline void SetTrialComponentName(Aws::String&& value) { m_trialComponentName = std::move(value); }
/**
* <p>The name of the trial component.</p>
*/
inline void SetTrialComponentName(const char* value) { m_trialComponentName.assign(value); }
/**
* <p>The name of the trial component.</p>
*/
inline DescribeTrialComponentResult& WithTrialComponentName(const Aws::String& value) { SetTrialComponentName(value); return *this;}
/**
* <p>The name of the trial component.</p>
*/
inline DescribeTrialComponentResult& WithTrialComponentName(Aws::String&& value) { SetTrialComponentName(std::move(value)); return *this;}
/**
* <p>The name of the trial component.</p>
*/
inline DescribeTrialComponentResult& WithTrialComponentName(const char* value) { SetTrialComponentName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the trial component.</p>
*/
inline const Aws::String& GetTrialComponentArn() const{ return m_trialComponentArn; }
/**
* <p>The Amazon Resource Name (ARN) of the trial component.</p>
*/
inline void SetTrialComponentArn(const Aws::String& value) { m_trialComponentArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the trial component.</p>
*/
inline void SetTrialComponentArn(Aws::String&& value) { m_trialComponentArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the trial component.</p>
*/
inline void SetTrialComponentArn(const char* value) { m_trialComponentArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the trial component.</p>
*/
inline DescribeTrialComponentResult& WithTrialComponentArn(const Aws::String& value) { SetTrialComponentArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the trial component.</p>
*/
inline DescribeTrialComponentResult& WithTrialComponentArn(Aws::String&& value) { SetTrialComponentArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the trial component.</p>
*/
inline DescribeTrialComponentResult& WithTrialComponentArn(const char* value) { SetTrialComponentArn(value); return *this;}
/**
* <p>The name of the component as displayed. If <code>DisplayName</code> isn't
* specified, <code>TrialComponentName</code> is displayed.</p>
*/
inline const Aws::String& GetDisplayName() const{ return m_displayName; }
/**
* <p>The name of the component as displayed. If <code>DisplayName</code> isn't
* specified, <code>TrialComponentName</code> is displayed.</p>
*/
inline void SetDisplayName(const Aws::String& value) { m_displayName = value; }
/**
* <p>The name of the component as displayed. If <code>DisplayName</code> isn't
* specified, <code>TrialComponentName</code> is displayed.</p>
*/
inline void SetDisplayName(Aws::String&& value) { m_displayName = std::move(value); }
/**
* <p>The name of the component as displayed. If <code>DisplayName</code> isn't
* specified, <code>TrialComponentName</code> is displayed.</p>
*/
inline void SetDisplayName(const char* value) { m_displayName.assign(value); }
/**
* <p>The name of the component as displayed. If <code>DisplayName</code> isn't
* specified, <code>TrialComponentName</code> is displayed.</p>
*/
inline DescribeTrialComponentResult& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
/**
* <p>The name of the component as displayed. If <code>DisplayName</code> isn't
* specified, <code>TrialComponentName</code> is displayed.</p>
*/
inline DescribeTrialComponentResult& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
/**
* <p>The name of the component as displayed. If <code>DisplayName</code> isn't
* specified, <code>TrialComponentName</code> is displayed.</p>
*/
inline DescribeTrialComponentResult& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source and, optionally, the job
* type.</p>
*/
inline const TrialComponentSource& GetSource() const{ return m_source; }
/**
* <p>The Amazon Resource Name (ARN) of the source and, optionally, the job
* type.</p>
*/
inline void SetSource(const TrialComponentSource& value) { m_source = value; }
/**
* <p>The Amazon Resource Name (ARN) of the source and, optionally, the job
* type.</p>
*/
inline void SetSource(TrialComponentSource&& value) { m_source = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the source and, optionally, the job
* type.</p>
*/
inline DescribeTrialComponentResult& WithSource(const TrialComponentSource& value) { SetSource(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source and, optionally, the job
* type.</p>
*/
inline DescribeTrialComponentResult& WithSource(TrialComponentSource&& value) { SetSource(std::move(value)); return *this;}
/**
* <p>The status of the component. States include:</p> <ul> <li> <p>InProgress</p>
* </li> <li> <p>Completed</p> </li> <li> <p>Failed</p> </li> </ul>
*/
inline const TrialComponentStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the component. States include:</p> <ul> <li> <p>InProgress</p>
* </li> <li> <p>Completed</p> </li> <li> <p>Failed</p> </li> </ul>
*/
inline void SetStatus(const TrialComponentStatus& value) { m_status = value; }
/**
* <p>The status of the component. States include:</p> <ul> <li> <p>InProgress</p>
* </li> <li> <p>Completed</p> </li> <li> <p>Failed</p> </li> </ul>
*/
inline void SetStatus(TrialComponentStatus&& value) { m_status = std::move(value); }
/**
* <p>The status of the component. States include:</p> <ul> <li> <p>InProgress</p>
* </li> <li> <p>Completed</p> </li> <li> <p>Failed</p> </li> </ul>
*/
inline DescribeTrialComponentResult& WithStatus(const TrialComponentStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the component. States include:</p> <ul> <li> <p>InProgress</p>
* </li> <li> <p>Completed</p> </li> <li> <p>Failed</p> </li> </ul>
*/
inline DescribeTrialComponentResult& WithStatus(TrialComponentStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>When the component started.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>When the component started.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; }
/**
* <p>When the component started.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); }
/**
* <p>When the component started.</p>
*/
inline DescribeTrialComponentResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>When the component started.</p>
*/
inline DescribeTrialComponentResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>When the component ended.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>When the component ended.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTime = value; }
/**
* <p>When the component ended.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTime = std::move(value); }
/**
* <p>When the component ended.</p>
*/
inline DescribeTrialComponentResult& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>When the component ended.</p>
*/
inline DescribeTrialComponentResult& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>When the component was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>When the component was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>When the component was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>When the component was created.</p>
*/
inline DescribeTrialComponentResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>When the component was created.</p>
*/
inline DescribeTrialComponentResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>Who created the component.</p>
*/
inline const UserContext& GetCreatedBy() const{ return m_createdBy; }
/**
* <p>Who created the component.</p>
*/
inline void SetCreatedBy(const UserContext& value) { m_createdBy = value; }
/**
* <p>Who created the component.</p>
*/
inline void SetCreatedBy(UserContext&& value) { m_createdBy = std::move(value); }
/**
* <p>Who created the component.</p>
*/
inline DescribeTrialComponentResult& WithCreatedBy(const UserContext& value) { SetCreatedBy(value); return *this;}
/**
* <p>Who created the component.</p>
*/
inline DescribeTrialComponentResult& WithCreatedBy(UserContext&& value) { SetCreatedBy(std::move(value)); return *this;}
/**
* <p>When the component was last modified.</p>
*/
inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
/**
* <p>When the component was last modified.</p>
*/
inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; }
/**
* <p>When the component was last modified.</p>
*/
inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); }
/**
* <p>When the component was last modified.</p>
*/
inline DescribeTrialComponentResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
/**
* <p>When the component was last modified.</p>
*/
inline DescribeTrialComponentResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
/**
* <p>Who last modified the component.</p>
*/
inline const UserContext& GetLastModifiedBy() const{ return m_lastModifiedBy; }
/**
* <p>Who last modified the component.</p>
*/
inline void SetLastModifiedBy(const UserContext& value) { m_lastModifiedBy = value; }
/**
* <p>Who last modified the component.</p>
*/
inline void SetLastModifiedBy(UserContext&& value) { m_lastModifiedBy = std::move(value); }
/**
* <p>Who last modified the component.</p>
*/
inline DescribeTrialComponentResult& WithLastModifiedBy(const UserContext& value) { SetLastModifiedBy(value); return *this;}
/**
* <p>Who last modified the component.</p>
*/
inline DescribeTrialComponentResult& WithLastModifiedBy(UserContext&& value) { SetLastModifiedBy(std::move(value)); return *this;}
/**
* <p>The hyperparameters of the component.</p>
*/
inline const Aws::Map<Aws::String, TrialComponentParameterValue>& GetParameters() const{ return m_parameters; }
/**
* <p>The hyperparameters of the component.</p>
*/
inline void SetParameters(const Aws::Map<Aws::String, TrialComponentParameterValue>& value) { m_parameters = value; }
/**
* <p>The hyperparameters of the component.</p>
*/
inline void SetParameters(Aws::Map<Aws::String, TrialComponentParameterValue>&& value) { m_parameters = std::move(value); }
/**
* <p>The hyperparameters of the component.</p>
*/
inline DescribeTrialComponentResult& WithParameters(const Aws::Map<Aws::String, TrialComponentParameterValue>& value) { SetParameters(value); return *this;}
/**
* <p>The hyperparameters of the component.</p>
*/
inline DescribeTrialComponentResult& WithParameters(Aws::Map<Aws::String, TrialComponentParameterValue>&& value) { SetParameters(std::move(value)); return *this;}
/**
* <p>The hyperparameters of the component.</p>
*/
inline DescribeTrialComponentResult& AddParameters(const Aws::String& key, const TrialComponentParameterValue& value) { m_parameters.emplace(key, value); return *this; }
/**
* <p>The hyperparameters of the component.</p>
*/
inline DescribeTrialComponentResult& AddParameters(Aws::String&& key, const TrialComponentParameterValue& value) { m_parameters.emplace(std::move(key), value); return *this; }
/**
* <p>The hyperparameters of the component.</p>
*/
inline DescribeTrialComponentResult& AddParameters(const Aws::String& key, TrialComponentParameterValue&& value) { m_parameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The hyperparameters of the component.</p>
*/
inline DescribeTrialComponentResult& AddParameters(Aws::String&& key, TrialComponentParameterValue&& value) { m_parameters.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The hyperparameters of the component.</p>
*/
inline DescribeTrialComponentResult& AddParameters(const char* key, TrialComponentParameterValue&& value) { m_parameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The hyperparameters of the component.</p>
*/
inline DescribeTrialComponentResult& AddParameters(const char* key, const TrialComponentParameterValue& value) { m_parameters.emplace(key, value); return *this; }
/**
* <p>The input artifacts of the component.</p>
*/
inline const Aws::Map<Aws::String, TrialComponentArtifact>& GetInputArtifacts() const{ return m_inputArtifacts; }
/**
* <p>The input artifacts of the component.</p>
*/
inline void SetInputArtifacts(const Aws::Map<Aws::String, TrialComponentArtifact>& value) { m_inputArtifacts = value; }
/**
* <p>The input artifacts of the component.</p>
*/
inline void SetInputArtifacts(Aws::Map<Aws::String, TrialComponentArtifact>&& value) { m_inputArtifacts = std::move(value); }
/**
* <p>The input artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& WithInputArtifacts(const Aws::Map<Aws::String, TrialComponentArtifact>& value) { SetInputArtifacts(value); return *this;}
/**
* <p>The input artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& WithInputArtifacts(Aws::Map<Aws::String, TrialComponentArtifact>&& value) { SetInputArtifacts(std::move(value)); return *this;}
/**
* <p>The input artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& AddInputArtifacts(const Aws::String& key, const TrialComponentArtifact& value) { m_inputArtifacts.emplace(key, value); return *this; }
/**
* <p>The input artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& AddInputArtifacts(Aws::String&& key, const TrialComponentArtifact& value) { m_inputArtifacts.emplace(std::move(key), value); return *this; }
/**
* <p>The input artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& AddInputArtifacts(const Aws::String& key, TrialComponentArtifact&& value) { m_inputArtifacts.emplace(key, std::move(value)); return *this; }
/**
* <p>The input artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& AddInputArtifacts(Aws::String&& key, TrialComponentArtifact&& value) { m_inputArtifacts.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The input artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& AddInputArtifacts(const char* key, TrialComponentArtifact&& value) { m_inputArtifacts.emplace(key, std::move(value)); return *this; }
/**
* <p>The input artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& AddInputArtifacts(const char* key, const TrialComponentArtifact& value) { m_inputArtifacts.emplace(key, value); return *this; }
/**
* <p>The output artifacts of the component.</p>
*/
inline const Aws::Map<Aws::String, TrialComponentArtifact>& GetOutputArtifacts() const{ return m_outputArtifacts; }
/**
* <p>The output artifacts of the component.</p>
*/
inline void SetOutputArtifacts(const Aws::Map<Aws::String, TrialComponentArtifact>& value) { m_outputArtifacts = value; }
/**
* <p>The output artifacts of the component.</p>
*/
inline void SetOutputArtifacts(Aws::Map<Aws::String, TrialComponentArtifact>&& value) { m_outputArtifacts = std::move(value); }
/**
* <p>The output artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& WithOutputArtifacts(const Aws::Map<Aws::String, TrialComponentArtifact>& value) { SetOutputArtifacts(value); return *this;}
/**
* <p>The output artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& WithOutputArtifacts(Aws::Map<Aws::String, TrialComponentArtifact>&& value) { SetOutputArtifacts(std::move(value)); return *this;}
/**
* <p>The output artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& AddOutputArtifacts(const Aws::String& key, const TrialComponentArtifact& value) { m_outputArtifacts.emplace(key, value); return *this; }
/**
* <p>The output artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& AddOutputArtifacts(Aws::String&& key, const TrialComponentArtifact& value) { m_outputArtifacts.emplace(std::move(key), value); return *this; }
/**
* <p>The output artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& AddOutputArtifacts(const Aws::String& key, TrialComponentArtifact&& value) { m_outputArtifacts.emplace(key, std::move(value)); return *this; }
/**
* <p>The output artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& AddOutputArtifacts(Aws::String&& key, TrialComponentArtifact&& value) { m_outputArtifacts.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The output artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& AddOutputArtifacts(const char* key, TrialComponentArtifact&& value) { m_outputArtifacts.emplace(key, std::move(value)); return *this; }
/**
* <p>The output artifacts of the component.</p>
*/
inline DescribeTrialComponentResult& AddOutputArtifacts(const char* key, const TrialComponentArtifact& value) { m_outputArtifacts.emplace(key, value); return *this; }
/**
* <p>The metrics for the component.</p>
*/
inline const Aws::Vector<TrialComponentMetricSummary>& GetMetrics() const{ return m_metrics; }
/**
* <p>The metrics for the component.</p>
*/
inline void SetMetrics(const Aws::Vector<TrialComponentMetricSummary>& value) { m_metrics = value; }
/**
* <p>The metrics for the component.</p>
*/
inline void SetMetrics(Aws::Vector<TrialComponentMetricSummary>&& value) { m_metrics = std::move(value); }
/**
* <p>The metrics for the component.</p>
*/
inline DescribeTrialComponentResult& WithMetrics(const Aws::Vector<TrialComponentMetricSummary>& value) { SetMetrics(value); return *this;}
/**
* <p>The metrics for the component.</p>
*/
inline DescribeTrialComponentResult& WithMetrics(Aws::Vector<TrialComponentMetricSummary>&& value) { SetMetrics(std::move(value)); return *this;}
/**
* <p>The metrics for the component.</p>
*/
inline DescribeTrialComponentResult& AddMetrics(const TrialComponentMetricSummary& value) { m_metrics.push_back(value); return *this; }
/**
* <p>The metrics for the component.</p>
*/
inline DescribeTrialComponentResult& AddMetrics(TrialComponentMetricSummary&& value) { m_metrics.push_back(std::move(value)); return *this; }
private:
Aws::String m_trialComponentName;
Aws::String m_trialComponentArn;
Aws::String m_displayName;
TrialComponentSource m_source;
TrialComponentStatus m_status;
Aws::Utils::DateTime m_startTime;
Aws::Utils::DateTime m_endTime;
Aws::Utils::DateTime m_creationTime;
UserContext m_createdBy;
Aws::Utils::DateTime m_lastModifiedTime;
UserContext m_lastModifiedBy;
Aws::Map<Aws::String, TrialComponentParameterValue> m_parameters;
Aws::Map<Aws::String, TrialComponentArtifact> m_inputArtifacts;
Aws::Map<Aws::String, TrialComponentArtifact> m_outputArtifacts;
Aws::Vector<TrialComponentMetricSummary> m_metrics;
};
} // namespace Model
} // namespace SageMaker
} // namespace Aws