/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 S3Grantee { public: AWS_S3CONTROL_API S3Grantee(); AWS_S3CONTROL_API S3Grantee(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API S3Grantee& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

*/ inline const S3GranteeTypeIdentifier& GetTypeIdentifier() const{ return m_typeIdentifier; } /** *

*/ inline bool TypeIdentifierHasBeenSet() const { return m_typeIdentifierHasBeenSet; } /** *

*/ inline void SetTypeIdentifier(const S3GranteeTypeIdentifier& value) { m_typeIdentifierHasBeenSet = true; m_typeIdentifier = value; } /** *

*/ inline void SetTypeIdentifier(S3GranteeTypeIdentifier&& value) { m_typeIdentifierHasBeenSet = true; m_typeIdentifier = std::move(value); } /** *

*/ inline S3Grantee& WithTypeIdentifier(const S3GranteeTypeIdentifier& value) { SetTypeIdentifier(value); return *this;} /** *

*/ inline S3Grantee& WithTypeIdentifier(S3GranteeTypeIdentifier&& value) { SetTypeIdentifier(std::move(value)); return *this;} /** *

*/ inline const Aws::String& GetIdentifier() const{ return m_identifier; } /** *

*/ inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } /** *

*/ inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } /** *

*/ inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } /** *

*/ inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } /** *

*/ inline S3Grantee& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} /** *

*/ inline S3Grantee& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} /** *

*/ inline S3Grantee& WithIdentifier(const char* value) { SetIdentifier(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 S3Grantee& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

*/ inline S3Grantee& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

*/ inline S3Grantee& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} private: S3GranteeTypeIdentifier m_typeIdentifier; bool m_typeIdentifierHasBeenSet = false; Aws::String m_identifier; bool m_identifierHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws