1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #include <aws/lex-models/model/SlotTypeConfiguration.h> 7 #include <aws/core/utils/json/JsonSerializer.h> 8 9 #include <utility> 10 11 using namespace Aws::Utils::Json; 12 using namespace Aws::Utils; 13 14 namespace Aws 15 { 16 namespace LexModelBuildingService 17 { 18 namespace Model 19 { 20 SlotTypeConfiguration()21SlotTypeConfiguration::SlotTypeConfiguration() : 22 m_regexConfigurationHasBeenSet(false) 23 { 24 } 25 SlotTypeConfiguration(JsonView jsonValue)26SlotTypeConfiguration::SlotTypeConfiguration(JsonView jsonValue) : 27 m_regexConfigurationHasBeenSet(false) 28 { 29 *this = jsonValue; 30 } 31 operator =(JsonView jsonValue)32SlotTypeConfiguration& SlotTypeConfiguration::operator =(JsonView jsonValue) 33 { 34 if(jsonValue.ValueExists("regexConfiguration")) 35 { 36 m_regexConfiguration = jsonValue.GetObject("regexConfiguration"); 37 38 m_regexConfigurationHasBeenSet = true; 39 } 40 41 return *this; 42 } 43 Jsonize() const44JsonValue SlotTypeConfiguration::Jsonize() const 45 { 46 JsonValue payload; 47 48 if(m_regexConfigurationHasBeenSet) 49 { 50 payload.WithObject("regexConfiguration", m_regexConfiguration.Jsonize()); 51 52 } 53 54 return payload; 55 } 56 57 } // namespace Model 58 } // namespace LexModelBuildingService 59 } // namespace Aws 60