This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-compute-optimizer/source/model/S3DestinationConfig.cpp

75 lines
1.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/compute-optimizer/model/S3DestinationConfig.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ComputeOptimizer
{
namespace Model
{
S3DestinationConfig::S3DestinationConfig() :
m_bucketHasBeenSet(false),
m_keyPrefixHasBeenSet(false)
{
}
S3DestinationConfig::S3DestinationConfig(JsonView jsonValue) :
m_bucketHasBeenSet(false),
m_keyPrefixHasBeenSet(false)
{
*this = jsonValue;
}
S3DestinationConfig& S3DestinationConfig::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("bucket"))
{
m_bucket = jsonValue.GetString("bucket");
m_bucketHasBeenSet = true;
}
if(jsonValue.ValueExists("keyPrefix"))
{
m_keyPrefix = jsonValue.GetString("keyPrefix");
m_keyPrefixHasBeenSet = true;
}
return *this;
}
JsonValue S3DestinationConfig::Jsonize() const
{
JsonValue payload;
if(m_bucketHasBeenSet)
{
payload.WithString("bucket", m_bucket);
}
if(m_keyPrefixHasBeenSet)
{
payload.WithString("keyPrefix", m_keyPrefix);
}
return payload;
}
} // namespace Model
} // namespace ComputeOptimizer
} // namespace Aws