/** * 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 { SplunkRetryOptions::SplunkRetryOptions() : m_durationInSeconds(0), m_durationInSecondsHasBeenSet(false) { } SplunkRetryOptions::SplunkRetryOptions(JsonView jsonValue) : m_durationInSeconds(0), m_durationInSecondsHasBeenSet(false) { *this = jsonValue; } SplunkRetryOptions& SplunkRetryOptions::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("DurationInSeconds")) { m_durationInSeconds = jsonValue.GetInteger("DurationInSeconds"); m_durationInSecondsHasBeenSet = true; } return *this; } JsonValue SplunkRetryOptions::Jsonize() const { JsonValue payload; if(m_durationInSecondsHasBeenSet) { payload.WithInteger("DurationInSeconds", m_durationInSeconds); } return payload; } } // namespace Model } // namespace Firehose } // namespace Aws