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

#include <utility>

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

/**
 * <p>The configuration for the file system and kernels in a SageMaker image
 * running as a Code Editor app. The <code>FileSystemConfig</code> object is not
 * supported.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CodeEditorAppImageConfig">AWS
 * API Reference</a></p>
 */
class CodeEditorAppImageConfig {
 public:
  AWS_SAGEMAKER_API CodeEditorAppImageConfig() = default;
  AWS_SAGEMAKER_API CodeEditorAppImageConfig(Aws::Utils::Json::JsonView jsonValue);
  AWS_SAGEMAKER_API CodeEditorAppImageConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{

  inline const FileSystemConfig& GetFileSystemConfig() const { return m_fileSystemConfig; }
  inline bool FileSystemConfigHasBeenSet() const { return m_fileSystemConfigHasBeenSet; }
  template <typename FileSystemConfigT = FileSystemConfig>
  void SetFileSystemConfig(FileSystemConfigT&& value) {
    m_fileSystemConfigHasBeenSet = true;
    m_fileSystemConfig = std::forward<FileSystemConfigT>(value);
  }
  template <typename FileSystemConfigT = FileSystemConfig>
  CodeEditorAppImageConfig& WithFileSystemConfig(FileSystemConfigT&& value) {
    SetFileSystemConfig(std::forward<FileSystemConfigT>(value));
    return *this;
  }
  ///@}

  ///@{

  inline const ContainerConfig& GetContainerConfig() const { return m_containerConfig; }
  inline bool ContainerConfigHasBeenSet() const { return m_containerConfigHasBeenSet; }
  template <typename ContainerConfigT = ContainerConfig>
  void SetContainerConfig(ContainerConfigT&& value) {
    m_containerConfigHasBeenSet = true;
    m_containerConfig = std::forward<ContainerConfigT>(value);
  }
  template <typename ContainerConfigT = ContainerConfig>
  CodeEditorAppImageConfig& WithContainerConfig(ContainerConfigT&& value) {
    SetContainerConfig(std::forward<ContainerConfigT>(value));
    return *this;
  }
  ///@}
 private:
  FileSystemConfig m_fileSystemConfig;

  ContainerConfig m_containerConfig;
  bool m_fileSystemConfigHasBeenSet = false;
  bool m_containerConfigHasBeenSet = false;
};

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