/** * 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 FraudDetector { namespace Model { AllowDenyList::AllowDenyList() : m_nameHasBeenSet(false), m_descriptionHasBeenSet(false), m_variableTypeHasBeenSet(false), m_createdTimeHasBeenSet(false), m_updatedTimeHasBeenSet(false), m_arnHasBeenSet(false) { } AllowDenyList::AllowDenyList(JsonView jsonValue) : m_nameHasBeenSet(false), m_descriptionHasBeenSet(false), m_variableTypeHasBeenSet(false), m_createdTimeHasBeenSet(false), m_updatedTimeHasBeenSet(false), m_arnHasBeenSet(false) { *this = jsonValue; } AllowDenyList& AllowDenyList::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("description")) { m_description = jsonValue.GetString("description"); m_descriptionHasBeenSet = true; } if(jsonValue.ValueExists("variableType")) { m_variableType = jsonValue.GetString("variableType"); m_variableTypeHasBeenSet = true; } if(jsonValue.ValueExists("createdTime")) { m_createdTime = jsonValue.GetString("createdTime"); m_createdTimeHasBeenSet = true; } if(jsonValue.ValueExists("updatedTime")) { m_updatedTime = jsonValue.GetString("updatedTime"); m_updatedTimeHasBeenSet = true; } if(jsonValue.ValueExists("arn")) { m_arn = jsonValue.GetString("arn"); m_arnHasBeenSet = true; } return *this; } JsonValue AllowDenyList::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_variableTypeHasBeenSet) { payload.WithString("variableType", m_variableType); } if(m_createdTimeHasBeenSet) { payload.WithString("createdTime", m_createdTime); } if(m_updatedTimeHasBeenSet) { payload.WithString("updatedTime", m_updatedTime); } if(m_arnHasBeenSet) { payload.WithString("arn", m_arn); } return payload; } } // namespace Model } // namespace FraudDetector } // namespace Aws