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-macie2/source/model/S3BucketOwner.cpp

75 lines
1.2 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/macie2/model/S3BucketOwner.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Macie2
{
namespace Model
{
S3BucketOwner::S3BucketOwner() :
m_displayNameHasBeenSet(false),
m_idHasBeenSet(false)
{
}
S3BucketOwner::S3BucketOwner(JsonView jsonValue) :
m_displayNameHasBeenSet(false),
m_idHasBeenSet(false)
{
*this = jsonValue;
}
S3BucketOwner& S3BucketOwner::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("displayName"))
{
m_displayName = jsonValue.GetString("displayName");
m_displayNameHasBeenSet = true;
}
if(jsonValue.ValueExists("id"))
{
m_id = jsonValue.GetString("id");
m_idHasBeenSet = true;
}
return *this;
}
JsonValue S3BucketOwner::Jsonize() const
{
JsonValue payload;
if(m_displayNameHasBeenSet)
{
payload.WithString("displayName", m_displayName);
}
if(m_idHasBeenSet)
{
payload.WithString("id", m_id);
}
return payload;
}
} // namespace Model
} // namespace Macie2
} // namespace Aws