/** * 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 StorageGateway { namespace Model { VolumeRecoveryPointInfo::VolumeRecoveryPointInfo() : m_volumeARNHasBeenSet(false), m_volumeSizeInBytes(0), m_volumeSizeInBytesHasBeenSet(false), m_volumeUsageInBytes(0), m_volumeUsageInBytesHasBeenSet(false), m_volumeRecoveryPointTimeHasBeenSet(false) { } VolumeRecoveryPointInfo::VolumeRecoveryPointInfo(JsonView jsonValue) : m_volumeARNHasBeenSet(false), m_volumeSizeInBytes(0), m_volumeSizeInBytesHasBeenSet(false), m_volumeUsageInBytes(0), m_volumeUsageInBytesHasBeenSet(false), m_volumeRecoveryPointTimeHasBeenSet(false) { *this = jsonValue; } VolumeRecoveryPointInfo& VolumeRecoveryPointInfo::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("VolumeARN")) { m_volumeARN = jsonValue.GetString("VolumeARN"); m_volumeARNHasBeenSet = true; } if(jsonValue.ValueExists("VolumeSizeInBytes")) { m_volumeSizeInBytes = jsonValue.GetInt64("VolumeSizeInBytes"); m_volumeSizeInBytesHasBeenSet = true; } if(jsonValue.ValueExists("VolumeUsageInBytes")) { m_volumeUsageInBytes = jsonValue.GetInt64("VolumeUsageInBytes"); m_volumeUsageInBytesHasBeenSet = true; } if(jsonValue.ValueExists("VolumeRecoveryPointTime")) { m_volumeRecoveryPointTime = jsonValue.GetString("VolumeRecoveryPointTime"); m_volumeRecoveryPointTimeHasBeenSet = true; } return *this; } JsonValue VolumeRecoveryPointInfo::Jsonize() const { JsonValue payload; if(m_volumeARNHasBeenSet) { payload.WithString("VolumeARN", m_volumeARN); } if(m_volumeSizeInBytesHasBeenSet) { payload.WithInt64("VolumeSizeInBytes", m_volumeSizeInBytes); } if(m_volumeUsageInBytesHasBeenSet) { payload.WithInt64("VolumeUsageInBytes", m_volumeUsageInBytes); } if(m_volumeRecoveryPointTimeHasBeenSet) { payload.WithString("VolumeRecoveryPointTime", m_volumeRecoveryPointTime); } return payload; } } // namespace Model } // namespace StorageGateway } // namespace Aws