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

#pragma once
#include <aws/securityhub/SecurityHub_EXPORTS.h>

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

/**
 * <p> The minimum and maximum amount of memory per vCPU, in GiB. </p><p><h3>See
 * Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails">AWS
 * API Reference</a></p>
 */
class AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails {
 public:
  AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails() = default;
  AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails(Aws::Utils::Json::JsonView jsonValue);
  AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p> The maximum amount of memory per vCPU, in GiB. If this parameter is omitted,
   * there's no maximum limit. </p>
   */
  inline double GetMax() const { return m_max; }
  inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
  inline void SetMax(double value) {
    m_maxHasBeenSet = true;
    m_max = value;
  }
  inline AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails& WithMax(double value) {
    SetMax(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p> The minimum amount of memory per vCPU, in GiB. If this parameter is omitted,
   * there's no maximum limit. </p>
   */
  inline double GetMin() const { return m_min; }
  inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
  inline void SetMin(double value) {
    m_minHasBeenSet = true;
    m_min = value;
  }
  inline AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails& WithMin(double value) {
    SetMin(value);
    return *this;
  }
  ///@}
 private:
  double m_max{0.0};

  double m_min{0.0};
  bool m_maxHasBeenSet = false;
  bool m_minHasBeenSet = false;
};

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