/** * 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 VerifiedPermissions { namespace Model { ValidationSettings::ValidationSettings() : m_mode(ValidationMode::NOT_SET), m_modeHasBeenSet(false) { } ValidationSettings::ValidationSettings(JsonView jsonValue) : m_mode(ValidationMode::NOT_SET), m_modeHasBeenSet(false) { *this = jsonValue; } ValidationSettings& ValidationSettings::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("mode")) { m_mode = ValidationModeMapper::GetValidationModeForName(jsonValue.GetString("mode")); m_modeHasBeenSet = true; } return *this; } JsonValue ValidationSettings::Jsonize() const { JsonValue payload; if(m_modeHasBeenSet) { payload.WithString("mode", ValidationModeMapper::GetNameForValidationMode(m_mode)); } return payload; } } // namespace Model } // namespace VerifiedPermissions } // namespace Aws