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