/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sagemaker/SageMaker_EXPORTS.h>
#include <aws/sagemaker/model/AlgorithmValidationProfile.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace SageMaker {
namespace Model {

/**
 * <p>Specifies configurations for one or more training jobs that SageMaker runs to
 * test the algorithm.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/AlgorithmValidationSpecification">AWS
 * API Reference</a></p>
 */
class AlgorithmValidationSpecification {
 public:
  AWS_SAGEMAKER_API AlgorithmValidationSpecification() = default;
  AWS_SAGEMAKER_API AlgorithmValidationSpecification(Aws::Utils::Json::JsonView jsonValue);
  AWS_SAGEMAKER_API AlgorithmValidationSpecification& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The IAM roles that SageMaker uses to run the training jobs.</p>
   */
  inline const Aws::String& GetValidationRole() const { return m_validationRole; }
  inline bool ValidationRoleHasBeenSet() const { return m_validationRoleHasBeenSet; }
  template <typename ValidationRoleT = Aws::String>
  void SetValidationRole(ValidationRoleT&& value) {
    m_validationRoleHasBeenSet = true;
    m_validationRole = std::forward<ValidationRoleT>(value);
  }
  template <typename ValidationRoleT = Aws::String>
  AlgorithmValidationSpecification& WithValidationRole(ValidationRoleT&& value) {
    SetValidationRole(std::forward<ValidationRoleT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>An array of <code>AlgorithmValidationProfile</code> objects, each of which
   * specifies a training job and batch transform job that SageMaker runs to validate
   * your algorithm.</p>
   */
  inline const Aws::Vector<AlgorithmValidationProfile>& GetValidationProfiles() const { return m_validationProfiles; }
  inline bool ValidationProfilesHasBeenSet() const { return m_validationProfilesHasBeenSet; }
  template <typename ValidationProfilesT = Aws::Vector<AlgorithmValidationProfile>>
  void SetValidationProfiles(ValidationProfilesT&& value) {
    m_validationProfilesHasBeenSet = true;
    m_validationProfiles = std::forward<ValidationProfilesT>(value);
  }
  template <typename ValidationProfilesT = Aws::Vector<AlgorithmValidationProfile>>
  AlgorithmValidationSpecification& WithValidationProfiles(ValidationProfilesT&& value) {
    SetValidationProfiles(std::forward<ValidationProfilesT>(value));
    return *this;
  }
  template <typename ValidationProfilesT = AlgorithmValidationProfile>
  AlgorithmValidationSpecification& AddValidationProfiles(ValidationProfilesT&& value) {
    m_validationProfilesHasBeenSet = true;
    m_validationProfiles.emplace_back(std::forward<ValidationProfilesT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_validationRole;

  Aws::Vector<AlgorithmValidationProfile> m_validationProfiles;
  bool m_validationRoleHasBeenSet = false;
  bool m_validationProfilesHasBeenSet = false;
};

}  // namespace Model
}  // namespace SageMaker
}  // namespace Aws
