/**
 * 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/securityhub/SecurityHub_EXPORTS.h>

#include <utility>

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

/**
 * <p>Details for a volume mount point that's used in a container definition.
 * </p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsMountPoint">AWS
 * API Reference</a></p>
 */
class AwsMountPoint {
 public:
  AWS_SECURITYHUB_API AwsMountPoint() = default;
  AWS_SECURITYHUB_API AwsMountPoint(Aws::Utils::Json::JsonView jsonValue);
  AWS_SECURITYHUB_API AwsMountPoint& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The name of the volume to mount. Must be a volume name referenced in the
   * <code>name</code> parameter of task definition <code>volume</code>. </p>
   */
  inline const Aws::String& GetSourceVolume() const { return m_sourceVolume; }
  inline bool SourceVolumeHasBeenSet() const { return m_sourceVolumeHasBeenSet; }
  template <typename SourceVolumeT = Aws::String>
  void SetSourceVolume(SourceVolumeT&& value) {
    m_sourceVolumeHasBeenSet = true;
    m_sourceVolume = std::forward<SourceVolumeT>(value);
  }
  template <typename SourceVolumeT = Aws::String>
  AwsMountPoint& WithSourceVolume(SourceVolumeT&& value) {
    SetSourceVolume(std::forward<SourceVolumeT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The path on the container to mount the host volume at. </p>
   */
  inline const Aws::String& GetContainerPath() const { return m_containerPath; }
  inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
  template <typename ContainerPathT = Aws::String>
  void SetContainerPath(ContainerPathT&& value) {
    m_containerPathHasBeenSet = true;
    m_containerPath = std::forward<ContainerPathT>(value);
  }
  template <typename ContainerPathT = Aws::String>
  AwsMountPoint& WithContainerPath(ContainerPathT&& value) {
    SetContainerPath(std::forward<ContainerPathT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_sourceVolume;

  Aws::String m_containerPath;
  bool m_sourceVolumeHasBeenSet = false;
  bool m_containerPathHasBeenSet = false;
};

}  // namespace Model
}  // namespace SecurityHub
}  // namespace Aws
