/** * 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 ConnectCampaigns { namespace Model { ProgressiveDialerConfig::ProgressiveDialerConfig() : m_bandwidthAllocation(0.0), m_bandwidthAllocationHasBeenSet(false) { } ProgressiveDialerConfig::ProgressiveDialerConfig(JsonView jsonValue) : m_bandwidthAllocation(0.0), m_bandwidthAllocationHasBeenSet(false) { *this = jsonValue; } ProgressiveDialerConfig& ProgressiveDialerConfig::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("bandwidthAllocation")) { m_bandwidthAllocation = jsonValue.GetDouble("bandwidthAllocation"); m_bandwidthAllocationHasBeenSet = true; } return *this; } JsonValue ProgressiveDialerConfig::Jsonize() const { JsonValue payload; if(m_bandwidthAllocationHasBeenSet) { payload.WithDouble("bandwidthAllocation", m_bandwidthAllocation); } return payload; } } // namespace Model } // namespace ConnectCampaigns } // namespace Aws