/** * 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 { AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails::AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails() : m_deleteOnTermination(false), m_deleteOnTerminationHasBeenSet(false), m_encrypted(false), m_encryptedHasBeenSet(false), m_iops(0), m_iopsHasBeenSet(false), m_snapshotIdHasBeenSet(false), m_volumeSize(0), m_volumeSizeHasBeenSet(false), m_volumeTypeHasBeenSet(false) { } AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails::AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails(JsonView jsonValue) : m_deleteOnTermination(false), m_deleteOnTerminationHasBeenSet(false), m_encrypted(false), m_encryptedHasBeenSet(false), m_iops(0), m_iopsHasBeenSet(false), m_snapshotIdHasBeenSet(false), m_volumeSize(0), m_volumeSizeHasBeenSet(false), m_volumeTypeHasBeenSet(false) { *this = jsonValue; } AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("DeleteOnTermination")) { m_deleteOnTermination = jsonValue.GetBool("DeleteOnTermination"); m_deleteOnTerminationHasBeenSet = true; } if(jsonValue.ValueExists("Encrypted")) { m_encrypted = jsonValue.GetBool("Encrypted"); m_encryptedHasBeenSet = true; } if(jsonValue.ValueExists("Iops")) { m_iops = jsonValue.GetInteger("Iops"); m_iopsHasBeenSet = true; } if(jsonValue.ValueExists("SnapshotId")) { m_snapshotId = jsonValue.GetString("SnapshotId"); m_snapshotIdHasBeenSet = true; } if(jsonValue.ValueExists("VolumeSize")) { m_volumeSize = jsonValue.GetInteger("VolumeSize"); m_volumeSizeHasBeenSet = true; } if(jsonValue.ValueExists("VolumeType")) { m_volumeType = jsonValue.GetString("VolumeType"); m_volumeTypeHasBeenSet = true; } return *this; } JsonValue AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails::Jsonize() const { JsonValue payload; if(m_deleteOnTerminationHasBeenSet) { payload.WithBool("DeleteOnTermination", m_deleteOnTermination); } if(m_encryptedHasBeenSet) { payload.WithBool("Encrypted", m_encrypted); } if(m_iopsHasBeenSet) { payload.WithInteger("Iops", m_iops); } if(m_snapshotIdHasBeenSet) { payload.WithString("SnapshotId", m_snapshotId); } if(m_volumeSizeHasBeenSet) { payload.WithInteger("VolumeSize", m_volumeSize); } if(m_volumeTypeHasBeenSet) { payload.WithString("VolumeType", m_volumeType); } return payload; } } // namespace Model } // namespace SecurityHub } // namespace Aws