/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

PrincipalIdFormat description

See Also:

AWS * API Reference

*/ class PrincipalIdFormat { public: AWS_EC2_API PrincipalIdFormat(); AWS_EC2_API PrincipalIdFormat(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API PrincipalIdFormat& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

PrincipalIdFormatARN description

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

PrincipalIdFormatARN description

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

PrincipalIdFormatARN description

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

PrincipalIdFormatARN description

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

PrincipalIdFormatARN description

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

PrincipalIdFormatARN description

*/ inline PrincipalIdFormat& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

PrincipalIdFormatARN description

*/ inline PrincipalIdFormat& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

PrincipalIdFormatARN description

*/ inline PrincipalIdFormat& WithArn(const char* value) { SetArn(value); return *this;} /** *

PrincipalIdFormatStatuses description

*/ inline const Aws::Vector& GetStatuses() const{ return m_statuses; } /** *

PrincipalIdFormatStatuses description

*/ inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; } /** *

PrincipalIdFormatStatuses description

*/ inline void SetStatuses(const Aws::Vector& value) { m_statusesHasBeenSet = true; m_statuses = value; } /** *

PrincipalIdFormatStatuses description

*/ inline void SetStatuses(Aws::Vector&& value) { m_statusesHasBeenSet = true; m_statuses = std::move(value); } /** *

PrincipalIdFormatStatuses description

*/ inline PrincipalIdFormat& WithStatuses(const Aws::Vector& value) { SetStatuses(value); return *this;} /** *

PrincipalIdFormatStatuses description

*/ inline PrincipalIdFormat& WithStatuses(Aws::Vector&& value) { SetStatuses(std::move(value)); return *this;} /** *

PrincipalIdFormatStatuses description

*/ inline PrincipalIdFormat& AddStatuses(const IdFormat& value) { m_statusesHasBeenSet = true; m_statuses.push_back(value); return *this; } /** *

PrincipalIdFormatStatuses description

*/ inline PrincipalIdFormat& AddStatuses(IdFormat&& value) { m_statusesHasBeenSet = true; m_statuses.push_back(std::move(value)); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Vector m_statuses; bool m_statusesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws