/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace SecurityHub { namespace Model { AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails::AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails() : m_max(0), m_maxHasBeenSet(false), m_min(0), m_minHasBeenSet(false) { } AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails::AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails(JsonView jsonValue) : m_max(0), m_maxHasBeenSet(false), m_min(0), m_minHasBeenSet(false) { *this = jsonValue; } AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails& AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Max")) { m_max = jsonValue.GetInteger("Max"); m_maxHasBeenSet = true; } if(jsonValue.ValueExists("Min")) { m_min = jsonValue.GetInteger("Min"); m_minHasBeenSet = true; } return *this; } JsonValue AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails::Jsonize() const { JsonValue payload; if(m_maxHasBeenSet) { payload.WithInteger("Max", m_max); } if(m_minHasBeenSet) { payload.WithInteger("Min", m_min); } return payload; } } // namespace Model } // namespace SecurityHub } // namespace Aws