/** * 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 Pipes { namespace Model { UpdatePipeSourceActiveMQBrokerParameters::UpdatePipeSourceActiveMQBrokerParameters() : m_batchSize(0), m_batchSizeHasBeenSet(false), m_credentialsHasBeenSet(false), m_maximumBatchingWindowInSeconds(0), m_maximumBatchingWindowInSecondsHasBeenSet(false) { } UpdatePipeSourceActiveMQBrokerParameters::UpdatePipeSourceActiveMQBrokerParameters(JsonView jsonValue) : m_batchSize(0), m_batchSizeHasBeenSet(false), m_credentialsHasBeenSet(false), m_maximumBatchingWindowInSeconds(0), m_maximumBatchingWindowInSecondsHasBeenSet(false) { *this = jsonValue; } UpdatePipeSourceActiveMQBrokerParameters& UpdatePipeSourceActiveMQBrokerParameters::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("BatchSize")) { m_batchSize = jsonValue.GetInteger("BatchSize"); m_batchSizeHasBeenSet = true; } if(jsonValue.ValueExists("Credentials")) { m_credentials = jsonValue.GetObject("Credentials"); m_credentialsHasBeenSet = true; } if(jsonValue.ValueExists("MaximumBatchingWindowInSeconds")) { m_maximumBatchingWindowInSeconds = jsonValue.GetInteger("MaximumBatchingWindowInSeconds"); m_maximumBatchingWindowInSecondsHasBeenSet = true; } return *this; } JsonValue UpdatePipeSourceActiveMQBrokerParameters::Jsonize() const { JsonValue payload; if(m_batchSizeHasBeenSet) { payload.WithInteger("BatchSize", m_batchSize); } if(m_credentialsHasBeenSet) { payload.WithObject("Credentials", m_credentials.Jsonize()); } if(m_maximumBatchingWindowInSecondsHasBeenSet) { payload.WithInteger("MaximumBatchingWindowInSeconds", m_maximumBatchingWindowInSeconds); } return payload; } } // namespace Model } // namespace Pipes } // namespace Aws