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