/** * 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 Lightsail { namespace Model { ResourceReceivingAccess::ResourceReceivingAccess() : m_nameHasBeenSet(false), m_resourceTypeHasBeenSet(false) { } ResourceReceivingAccess::ResourceReceivingAccess(JsonView jsonValue) : m_nameHasBeenSet(false), m_resourceTypeHasBeenSet(false) { *this = jsonValue; } ResourceReceivingAccess& ResourceReceivingAccess::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("resourceType")) { m_resourceType = jsonValue.GetString("resourceType"); m_resourceTypeHasBeenSet = true; } return *this; } JsonValue ResourceReceivingAccess::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_resourceTypeHasBeenSet) { payload.WithString("resourceType", m_resourceType); } return payload; } } // namespace Model } // namespace Lightsail } // namespace Aws