/** * 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 KinesisAnalyticsV2 { namespace Model { ApplicationRestoreConfiguration::ApplicationRestoreConfiguration() : m_applicationRestoreType(ApplicationRestoreType::NOT_SET), m_applicationRestoreTypeHasBeenSet(false), m_snapshotNameHasBeenSet(false) { } ApplicationRestoreConfiguration::ApplicationRestoreConfiguration(JsonView jsonValue) : m_applicationRestoreType(ApplicationRestoreType::NOT_SET), m_applicationRestoreTypeHasBeenSet(false), m_snapshotNameHasBeenSet(false) { *this = jsonValue; } ApplicationRestoreConfiguration& ApplicationRestoreConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("ApplicationRestoreType")) { m_applicationRestoreType = ApplicationRestoreTypeMapper::GetApplicationRestoreTypeForName(jsonValue.GetString("ApplicationRestoreType")); m_applicationRestoreTypeHasBeenSet = true; } if(jsonValue.ValueExists("SnapshotName")) { m_snapshotName = jsonValue.GetString("SnapshotName"); m_snapshotNameHasBeenSet = true; } return *this; } JsonValue ApplicationRestoreConfiguration::Jsonize() const { JsonValue payload; if(m_applicationRestoreTypeHasBeenSet) { payload.WithString("ApplicationRestoreType", ApplicationRestoreTypeMapper::GetNameForApplicationRestoreType(m_applicationRestoreType)); } if(m_snapshotNameHasBeenSet) { payload.WithString("SnapshotName", m_snapshotName); } return payload; } } // namespace Model } // namespace KinesisAnalyticsV2 } // namespace Aws