/** * 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 SESV2 { namespace Model { GuardianOptions::GuardianOptions() : m_optimizedSharedDelivery(FeatureStatus::NOT_SET), m_optimizedSharedDeliveryHasBeenSet(false) { } GuardianOptions::GuardianOptions(JsonView jsonValue) : m_optimizedSharedDelivery(FeatureStatus::NOT_SET), m_optimizedSharedDeliveryHasBeenSet(false) { *this = jsonValue; } GuardianOptions& GuardianOptions::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("OptimizedSharedDelivery")) { m_optimizedSharedDelivery = FeatureStatusMapper::GetFeatureStatusForName(jsonValue.GetString("OptimizedSharedDelivery")); m_optimizedSharedDeliveryHasBeenSet = true; } return *this; } JsonValue GuardianOptions::Jsonize() const { JsonValue payload; if(m_optimizedSharedDeliveryHasBeenSet) { payload.WithString("OptimizedSharedDelivery", FeatureStatusMapper::GetNameForFeatureStatus(m_optimizedSharedDelivery)); } return payload; } } // namespace Model } // namespace SESV2 } // namespace Aws