/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace Firehose { namespace Model { KinesisStreamSourceDescription::KinesisStreamSourceDescription() : m_kinesisStreamARNHasBeenSet(false), m_roleARNHasBeenSet(false), m_deliveryStartTimestampHasBeenSet(false) { } KinesisStreamSourceDescription::KinesisStreamSourceDescription(JsonView jsonValue) : m_kinesisStreamARNHasBeenSet(false), m_roleARNHasBeenSet(false), m_deliveryStartTimestampHasBeenSet(false) { *this = jsonValue; } KinesisStreamSourceDescription& KinesisStreamSourceDescription::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("KinesisStreamARN")) { m_kinesisStreamARN = jsonValue.GetString("KinesisStreamARN"); m_kinesisStreamARNHasBeenSet = true; } if(jsonValue.ValueExists("RoleARN")) { m_roleARN = jsonValue.GetString("RoleARN"); m_roleARNHasBeenSet = true; } if(jsonValue.ValueExists("DeliveryStartTimestamp")) { m_deliveryStartTimestamp = jsonValue.GetDouble("DeliveryStartTimestamp"); m_deliveryStartTimestampHasBeenSet = true; } return *this; } JsonValue KinesisStreamSourceDescription::Jsonize() const { JsonValue payload; if(m_kinesisStreamARNHasBeenSet) { payload.WithString("KinesisStreamARN", m_kinesisStreamARN); } if(m_roleARNHasBeenSet) { payload.WithString("RoleARN", m_roleARN); } if(m_deliveryStartTimestampHasBeenSet) { payload.WithDouble("DeliveryStartTimestamp", m_deliveryStartTimestamp.SecondsWithMSPrecision()); } return payload; } } // namespace Model } // namespace Firehose } // namespace Aws