/** * 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 GroundStation { namespace Model { S3RecordingConfig::S3RecordingConfig() : m_bucketArnHasBeenSet(false), m_prefixHasBeenSet(false), m_roleArnHasBeenSet(false) { } S3RecordingConfig::S3RecordingConfig(JsonView jsonValue) : m_bucketArnHasBeenSet(false), m_prefixHasBeenSet(false), m_roleArnHasBeenSet(false) { *this = jsonValue; } S3RecordingConfig& S3RecordingConfig::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("bucketArn")) { m_bucketArn = jsonValue.GetString("bucketArn"); m_bucketArnHasBeenSet = true; } if(jsonValue.ValueExists("prefix")) { m_prefix = jsonValue.GetString("prefix"); m_prefixHasBeenSet = true; } if(jsonValue.ValueExists("roleArn")) { m_roleArn = jsonValue.GetString("roleArn"); m_roleArnHasBeenSet = true; } return *this; } JsonValue S3RecordingConfig::Jsonize() const { JsonValue payload; if(m_bucketArnHasBeenSet) { payload.WithString("bucketArn", m_bucketArn); } if(m_prefixHasBeenSet) { payload.WithString("prefix", m_prefix); } if(m_roleArnHasBeenSet) { payload.WithString("roleArn", m_roleArn); } return payload; } } // namespace Model } // namespace GroundStation } // namespace Aws