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