/** * 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 Lambda { namespace Model { OnFailure::OnFailure() : m_destinationHasBeenSet(false) { } OnFailure::OnFailure(JsonView jsonValue) : m_destinationHasBeenSet(false) { *this = jsonValue; } OnFailure& OnFailure::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Destination")) { m_destination = jsonValue.GetString("Destination"); m_destinationHasBeenSet = true; } return *this; } JsonValue OnFailure::Jsonize() const { JsonValue payload; if(m_destinationHasBeenSet) { payload.WithString("Destination", m_destination); } return payload; } } // namespace Model } // namespace Lambda } // namespace Aws