/** * 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 imagebuilder { namespace Model { S3Logs::S3Logs() : m_s3BucketNameHasBeenSet(false), m_s3KeyPrefixHasBeenSet(false) { } S3Logs::S3Logs(JsonView jsonValue) : m_s3BucketNameHasBeenSet(false), m_s3KeyPrefixHasBeenSet(false) { *this = jsonValue; } S3Logs& S3Logs::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("s3BucketName")) { m_s3BucketName = jsonValue.GetString("s3BucketName"); m_s3BucketNameHasBeenSet = true; } if(jsonValue.ValueExists("s3KeyPrefix")) { m_s3KeyPrefix = jsonValue.GetString("s3KeyPrefix"); m_s3KeyPrefixHasBeenSet = true; } return *this; } JsonValue S3Logs::Jsonize() const { JsonValue payload; if(m_s3BucketNameHasBeenSet) { payload.WithString("s3BucketName", m_s3BucketName); } if(m_s3KeyPrefixHasBeenSet) { payload.WithString("s3KeyPrefix", m_s3KeyPrefix); } return payload; } } // namespace Model } // namespace imagebuilder } // namespace Aws