/** * 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 FMS { namespace Model { ActionTarget::ActionTarget() : m_resourceIdHasBeenSet(false), m_descriptionHasBeenSet(false) { } ActionTarget::ActionTarget(JsonView jsonValue) : m_resourceIdHasBeenSet(false), m_descriptionHasBeenSet(false) { *this = jsonValue; } ActionTarget& ActionTarget::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("ResourceId")) { m_resourceId = jsonValue.GetString("ResourceId"); m_resourceIdHasBeenSet = true; } if(jsonValue.ValueExists("Description")) { m_description = jsonValue.GetString("Description"); m_descriptionHasBeenSet = true; } return *this; } JsonValue ActionTarget::Jsonize() const { JsonValue payload; if(m_resourceIdHasBeenSet) { payload.WithString("ResourceId", m_resourceId); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } return payload; } } // namespace Model } // namespace FMS } // namespace Aws