/** * 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 WAFV2 { namespace Model { ChallengeAction::ChallengeAction() : m_customRequestHandlingHasBeenSet(false) { } ChallengeAction::ChallengeAction(JsonView jsonValue) : m_customRequestHandlingHasBeenSet(false) { *this = jsonValue; } ChallengeAction& ChallengeAction::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("CustomRequestHandling")) { m_customRequestHandling = jsonValue.GetObject("CustomRequestHandling"); m_customRequestHandlingHasBeenSet = true; } return *this; } JsonValue ChallengeAction::Jsonize() const { JsonValue payload; if(m_customRequestHandlingHasBeenSet) { payload.WithObject("CustomRequestHandling", m_customRequestHandling.Jsonize()); } return payload; } } // namespace Model } // namespace WAFV2 } // namespace Aws