/** * 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 FSx { namespace Model { UpdateFileSystemOpenZFSConfiguration::UpdateFileSystemOpenZFSConfiguration() : m_automaticBackupRetentionDays(0), m_automaticBackupRetentionDaysHasBeenSet(false), m_copyTagsToBackups(false), m_copyTagsToBackupsHasBeenSet(false), m_copyTagsToVolumes(false), m_copyTagsToVolumesHasBeenSet(false), m_dailyAutomaticBackupStartTimeHasBeenSet(false), m_throughputCapacity(0), m_throughputCapacityHasBeenSet(false), m_weeklyMaintenanceStartTimeHasBeenSet(false), m_diskIopsConfigurationHasBeenSet(false) { } UpdateFileSystemOpenZFSConfiguration::UpdateFileSystemOpenZFSConfiguration(JsonView jsonValue) : m_automaticBackupRetentionDays(0), m_automaticBackupRetentionDaysHasBeenSet(false), m_copyTagsToBackups(false), m_copyTagsToBackupsHasBeenSet(false), m_copyTagsToVolumes(false), m_copyTagsToVolumesHasBeenSet(false), m_dailyAutomaticBackupStartTimeHasBeenSet(false), m_throughputCapacity(0), m_throughputCapacityHasBeenSet(false), m_weeklyMaintenanceStartTimeHasBeenSet(false), m_diskIopsConfigurationHasBeenSet(false) { *this = jsonValue; } UpdateFileSystemOpenZFSConfiguration& UpdateFileSystemOpenZFSConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("AutomaticBackupRetentionDays")) { m_automaticBackupRetentionDays = jsonValue.GetInteger("AutomaticBackupRetentionDays"); m_automaticBackupRetentionDaysHasBeenSet = true; } if(jsonValue.ValueExists("CopyTagsToBackups")) { m_copyTagsToBackups = jsonValue.GetBool("CopyTagsToBackups"); m_copyTagsToBackupsHasBeenSet = true; } if(jsonValue.ValueExists("CopyTagsToVolumes")) { m_copyTagsToVolumes = jsonValue.GetBool("CopyTagsToVolumes"); m_copyTagsToVolumesHasBeenSet = true; } if(jsonValue.ValueExists("DailyAutomaticBackupStartTime")) { m_dailyAutomaticBackupStartTime = jsonValue.GetString("DailyAutomaticBackupStartTime"); m_dailyAutomaticBackupStartTimeHasBeenSet = true; } if(jsonValue.ValueExists("ThroughputCapacity")) { m_throughputCapacity = jsonValue.GetInteger("ThroughputCapacity"); m_throughputCapacityHasBeenSet = true; } if(jsonValue.ValueExists("WeeklyMaintenanceStartTime")) { m_weeklyMaintenanceStartTime = jsonValue.GetString("WeeklyMaintenanceStartTime"); m_weeklyMaintenanceStartTimeHasBeenSet = true; } if(jsonValue.ValueExists("DiskIopsConfiguration")) { m_diskIopsConfiguration = jsonValue.GetObject("DiskIopsConfiguration"); m_diskIopsConfigurationHasBeenSet = true; } return *this; } JsonValue UpdateFileSystemOpenZFSConfiguration::Jsonize() const { JsonValue payload; if(m_automaticBackupRetentionDaysHasBeenSet) { payload.WithInteger("AutomaticBackupRetentionDays", m_automaticBackupRetentionDays); } if(m_copyTagsToBackupsHasBeenSet) { payload.WithBool("CopyTagsToBackups", m_copyTagsToBackups); } if(m_copyTagsToVolumesHasBeenSet) { payload.WithBool("CopyTagsToVolumes", m_copyTagsToVolumes); } if(m_dailyAutomaticBackupStartTimeHasBeenSet) { payload.WithString("DailyAutomaticBackupStartTime", m_dailyAutomaticBackupStartTime); } if(m_throughputCapacityHasBeenSet) { payload.WithInteger("ThroughputCapacity", m_throughputCapacity); } if(m_weeklyMaintenanceStartTimeHasBeenSet) { payload.WithString("WeeklyMaintenanceStartTime", m_weeklyMaintenanceStartTime); } if(m_diskIopsConfigurationHasBeenSet) { payload.WithObject("DiskIopsConfiguration", m_diskIopsConfiguration.Jsonize()); } return payload; } } // namespace Model } // namespace FSx } // namespace Aws