/** * 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 Transfer { namespace Model { ResourceExistsException::ResourceExistsException() : m_messageHasBeenSet(false), m_resourceHasBeenSet(false), m_resourceTypeHasBeenSet(false) { } ResourceExistsException::ResourceExistsException(JsonView jsonValue) : m_messageHasBeenSet(false), m_resourceHasBeenSet(false), m_resourceTypeHasBeenSet(false) { *this = jsonValue; } ResourceExistsException& ResourceExistsException::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Message")) { m_message = jsonValue.GetString("Message"); m_messageHasBeenSet = true; } if(jsonValue.ValueExists("Resource")) { m_resource = jsonValue.GetString("Resource"); m_resourceHasBeenSet = true; } if(jsonValue.ValueExists("ResourceType")) { m_resourceType = jsonValue.GetString("ResourceType"); m_resourceTypeHasBeenSet = true; } return *this; } JsonValue ResourceExistsException::Jsonize() const { JsonValue payload; if(m_messageHasBeenSet) { payload.WithString("Message", m_message); } if(m_resourceHasBeenSet) { payload.WithString("Resource", m_resource); } if(m_resourceTypeHasBeenSet) { payload.WithString("ResourceType", m_resourceType); } return payload; } } // namespace Model } // namespace Transfer } // namespace Aws