/** * 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 { AddressField::AddressField() : m_identifierHasBeenSet(false) { } AddressField::AddressField(JsonView jsonValue) : m_identifierHasBeenSet(false) { *this = jsonValue; } AddressField& AddressField::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Identifier")) { m_identifier = jsonValue.GetString("Identifier"); m_identifierHasBeenSet = true; } return *this; } JsonValue AddressField::Jsonize() const { JsonValue payload; if(m_identifierHasBeenSet) { payload.WithString("Identifier", m_identifier); } return payload; } } // namespace Model } // namespace WAFV2 } // namespace Aws