/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Personalize
{
namespace Model
{
/**
* Describes the resource configuration for hyperparameter optimization
* (HPO).
See Also:
AWS
* API Reference
*/
class HPOResourceConfig
{
public:
AWS_PERSONALIZE_API HPOResourceConfig();
AWS_PERSONALIZE_API HPOResourceConfig(Aws::Utils::Json::JsonView jsonValue);
AWS_PERSONALIZE_API HPOResourceConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The maximum number of training jobs when you create a solution version. The
* maximum value for maxNumberOfTrainingJobs
is 40
.
*/
inline const Aws::String& GetMaxNumberOfTrainingJobs() const{ return m_maxNumberOfTrainingJobs; }
/**
* The maximum number of training jobs when you create a solution version. The
* maximum value for maxNumberOfTrainingJobs
is 40
.
*/
inline bool MaxNumberOfTrainingJobsHasBeenSet() const { return m_maxNumberOfTrainingJobsHasBeenSet; }
/**
* The maximum number of training jobs when you create a solution version. The
* maximum value for maxNumberOfTrainingJobs
is 40
.
*/
inline void SetMaxNumberOfTrainingJobs(const Aws::String& value) { m_maxNumberOfTrainingJobsHasBeenSet = true; m_maxNumberOfTrainingJobs = value; }
/**
* The maximum number of training jobs when you create a solution version. The
* maximum value for maxNumberOfTrainingJobs
is 40
.
*/
inline void SetMaxNumberOfTrainingJobs(Aws::String&& value) { m_maxNumberOfTrainingJobsHasBeenSet = true; m_maxNumberOfTrainingJobs = std::move(value); }
/**
* The maximum number of training jobs when you create a solution version. The
* maximum value for maxNumberOfTrainingJobs
is 40
.
*/
inline void SetMaxNumberOfTrainingJobs(const char* value) { m_maxNumberOfTrainingJobsHasBeenSet = true; m_maxNumberOfTrainingJobs.assign(value); }
/**
* The maximum number of training jobs when you create a solution version. The
* maximum value for maxNumberOfTrainingJobs
is 40
.
*/
inline HPOResourceConfig& WithMaxNumberOfTrainingJobs(const Aws::String& value) { SetMaxNumberOfTrainingJobs(value); return *this;}
/**
* The maximum number of training jobs when you create a solution version. The
* maximum value for maxNumberOfTrainingJobs
is 40
.
*/
inline HPOResourceConfig& WithMaxNumberOfTrainingJobs(Aws::String&& value) { SetMaxNumberOfTrainingJobs(std::move(value)); return *this;}
/**
* The maximum number of training jobs when you create a solution version. The
* maximum value for maxNumberOfTrainingJobs
is 40
.
*/
inline HPOResourceConfig& WithMaxNumberOfTrainingJobs(const char* value) { SetMaxNumberOfTrainingJobs(value); return *this;}
/**
* The maximum number of parallel training jobs when you create a solution
* version. The maximum value for maxParallelTrainingJobs
is
* 10
.
*/
inline const Aws::String& GetMaxParallelTrainingJobs() const{ return m_maxParallelTrainingJobs; }
/**
* The maximum number of parallel training jobs when you create a solution
* version. The maximum value for maxParallelTrainingJobs
is
* 10
.
*/
inline bool MaxParallelTrainingJobsHasBeenSet() const { return m_maxParallelTrainingJobsHasBeenSet; }
/**
* The maximum number of parallel training jobs when you create a solution
* version. The maximum value for maxParallelTrainingJobs
is
* 10
.
*/
inline void SetMaxParallelTrainingJobs(const Aws::String& value) { m_maxParallelTrainingJobsHasBeenSet = true; m_maxParallelTrainingJobs = value; }
/**
* The maximum number of parallel training jobs when you create a solution
* version. The maximum value for maxParallelTrainingJobs
is
* 10
.
*/
inline void SetMaxParallelTrainingJobs(Aws::String&& value) { m_maxParallelTrainingJobsHasBeenSet = true; m_maxParallelTrainingJobs = std::move(value); }
/**
* The maximum number of parallel training jobs when you create a solution
* version. The maximum value for maxParallelTrainingJobs
is
* 10
.
*/
inline void SetMaxParallelTrainingJobs(const char* value) { m_maxParallelTrainingJobsHasBeenSet = true; m_maxParallelTrainingJobs.assign(value); }
/**
* The maximum number of parallel training jobs when you create a solution
* version. The maximum value for maxParallelTrainingJobs
is
* 10
.
*/
inline HPOResourceConfig& WithMaxParallelTrainingJobs(const Aws::String& value) { SetMaxParallelTrainingJobs(value); return *this;}
/**
* The maximum number of parallel training jobs when you create a solution
* version. The maximum value for maxParallelTrainingJobs
is
* 10
.
*/
inline HPOResourceConfig& WithMaxParallelTrainingJobs(Aws::String&& value) { SetMaxParallelTrainingJobs(std::move(value)); return *this;}
/**
* The maximum number of parallel training jobs when you create a solution
* version. The maximum value for maxParallelTrainingJobs
is
* 10
.
*/
inline HPOResourceConfig& WithMaxParallelTrainingJobs(const char* value) { SetMaxParallelTrainingJobs(value); return *this;}
private:
Aws::String m_maxNumberOfTrainingJobs;
bool m_maxNumberOfTrainingJobsHasBeenSet = false;
Aws::String m_maxParallelTrainingJobs;
bool m_maxParallelTrainingJobsHasBeenSet = false;
};
} // namespace Model
} // namespace Personalize
} // namespace Aws