/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace S3Control
{
namespace Model
{
/**
* See Also:
AWS
* API Reference
*/
class S3ObjectOwner
{
public:
AWS_S3CONTROL_API S3ObjectOwner();
AWS_S3CONTROL_API S3ObjectOwner(const Aws::Utils::Xml::XmlNode& xmlNode);
AWS_S3CONTROL_API S3ObjectOwner& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
/**
*
*/
inline const Aws::String& GetID() const{ return m_iD; }
/**
*
*/
inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
/**
*
*/
inline void SetID(const Aws::String& value) { m_iDHasBeenSet = true; m_iD = value; }
/**
*
*/
inline void SetID(Aws::String&& value) { m_iDHasBeenSet = true; m_iD = std::move(value); }
/**
*
*/
inline void SetID(const char* value) { m_iDHasBeenSet = true; m_iD.assign(value); }
/**
*
*/
inline S3ObjectOwner& WithID(const Aws::String& value) { SetID(value); return *this;}
/**
*
*/
inline S3ObjectOwner& WithID(Aws::String&& value) { SetID(std::move(value)); return *this;}
/**
*
*/
inline S3ObjectOwner& WithID(const char* value) { SetID(value); return *this;}
/**
*
*/
inline const Aws::String& GetDisplayName() const{ return m_displayName; }
/**
*
*/
inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
/**
*
*/
inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
/**
*
*/
inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
/**
*
*/
inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
/**
*
*/
inline S3ObjectOwner& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
/**
*
*/
inline S3ObjectOwner& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
/**
*
*/
inline S3ObjectOwner& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
private:
Aws::String m_iD;
bool m_iDHasBeenSet = false;
Aws::String m_displayName;
bool m_displayNameHasBeenSet = false;
};
} // namespace Model
} // namespace S3Control
} // namespace Aws