/** * 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 Firehose { namespace Model { HttpEndpointDescription::HttpEndpointDescription() : m_urlHasBeenSet(false), m_nameHasBeenSet(false) { } HttpEndpointDescription::HttpEndpointDescription(JsonView jsonValue) : m_urlHasBeenSet(false), m_nameHasBeenSet(false) { *this = jsonValue; } HttpEndpointDescription& HttpEndpointDescription::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Url")) { m_url = jsonValue.GetString("Url"); m_urlHasBeenSet = true; } if(jsonValue.ValueExists("Name")) { m_name = jsonValue.GetString("Name"); m_nameHasBeenSet = true; } return *this; } JsonValue HttpEndpointDescription::Jsonize() const { JsonValue payload; if(m_urlHasBeenSet) { payload.WithString("Url", m_url); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } return payload; } } // namespace Model } // namespace Firehose } // namespace Aws