/** * 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 KinesisAnalytics { namespace Model { S3Configuration::S3Configuration() : m_roleARNHasBeenSet(false), m_bucketARNHasBeenSet(false), m_fileKeyHasBeenSet(false) { } S3Configuration::S3Configuration(JsonView jsonValue) : m_roleARNHasBeenSet(false), m_bucketARNHasBeenSet(false), m_fileKeyHasBeenSet(false) { *this = jsonValue; } S3Configuration& S3Configuration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("RoleARN")) { m_roleARN = jsonValue.GetString("RoleARN"); m_roleARNHasBeenSet = true; } if(jsonValue.ValueExists("BucketARN")) { m_bucketARN = jsonValue.GetString("BucketARN"); m_bucketARNHasBeenSet = true; } if(jsonValue.ValueExists("FileKey")) { m_fileKey = jsonValue.GetString("FileKey"); m_fileKeyHasBeenSet = true; } return *this; } JsonValue S3Configuration::Jsonize() const { JsonValue payload; if(m_roleARNHasBeenSet) { payload.WithString("RoleARN", m_roleARN); } if(m_bucketARNHasBeenSet) { payload.WithString("BucketARN", m_bucketARN); } if(m_fileKeyHasBeenSet) { payload.WithString("FileKey", m_fileKey); } return payload; } } // namespace Model } // namespace KinesisAnalytics } // namespace Aws