/**
 * 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/sagemaker/model/OptimizationJobModelSourceS3.h>
#include <aws/sagemaker/model/OptimizationSageMakerModel.h>

#include <utility>

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

/**
 * <p>The location of the source model to optimize with an optimization
 * job.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/OptimizationJobModelSource">AWS
 * API Reference</a></p>
 */
class OptimizationJobModelSource {
 public:
  AWS_SAGEMAKER_API OptimizationJobModelSource() = default;
  AWS_SAGEMAKER_API OptimizationJobModelSource(Aws::Utils::Json::JsonView jsonValue);
  AWS_SAGEMAKER_API OptimizationJobModelSource& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The Amazon S3 location of a source model to optimize with an optimization
   * job.</p>
   */
  inline const OptimizationJobModelSourceS3& GetS3() const { return m_s3; }
  inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
  template <typename S3T = OptimizationJobModelSourceS3>
  void SetS3(S3T&& value) {
    m_s3HasBeenSet = true;
    m_s3 = std::forward<S3T>(value);
  }
  template <typename S3T = OptimizationJobModelSourceS3>
  OptimizationJobModelSource& WithS3(S3T&& value) {
    SetS3(std::forward<S3T>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The name of an existing SageMaker model to optimize with an optimization
   * job.</p>
   */
  inline const OptimizationSageMakerModel& GetSageMakerModel() const { return m_sageMakerModel; }
  inline bool SageMakerModelHasBeenSet() const { return m_sageMakerModelHasBeenSet; }
  template <typename SageMakerModelT = OptimizationSageMakerModel>
  void SetSageMakerModel(SageMakerModelT&& value) {
    m_sageMakerModelHasBeenSet = true;
    m_sageMakerModel = std::forward<SageMakerModelT>(value);
  }
  template <typename SageMakerModelT = OptimizationSageMakerModel>
  OptimizationJobModelSource& WithSageMakerModel(SageMakerModelT&& value) {
    SetSageMakerModel(std::forward<SageMakerModelT>(value));
    return *this;
  }
  ///@}
 private:
  OptimizationJobModelSourceS3 m_s3;

  OptimizationSageMakerModel m_sageMakerModel;
  bool m_s3HasBeenSet = false;
  bool m_sageMakerModelHasBeenSet = false;
};

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