/** * 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 ElasticLoadBalancing { namespace Model { /** *

Information about a source security group.

See Also:

AWS * API Reference

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

The owner of the security group.

*/ inline const Aws::String& GetOwnerAlias() const{ return m_ownerAlias; } /** *

The owner of the security group.

*/ inline bool OwnerAliasHasBeenSet() const { return m_ownerAliasHasBeenSet; } /** *

The owner of the security group.

*/ inline void SetOwnerAlias(const Aws::String& value) { m_ownerAliasHasBeenSet = true; m_ownerAlias = value; } /** *

The owner of the security group.

*/ inline void SetOwnerAlias(Aws::String&& value) { m_ownerAliasHasBeenSet = true; m_ownerAlias = std::move(value); } /** *

The owner of the security group.

*/ inline void SetOwnerAlias(const char* value) { m_ownerAliasHasBeenSet = true; m_ownerAlias.assign(value); } /** *

The owner of the security group.

*/ inline SourceSecurityGroup& WithOwnerAlias(const Aws::String& value) { SetOwnerAlias(value); return *this;} /** *

The owner of the security group.

*/ inline SourceSecurityGroup& WithOwnerAlias(Aws::String&& value) { SetOwnerAlias(std::move(value)); return *this;} /** *

The owner of the security group.

*/ inline SourceSecurityGroup& WithOwnerAlias(const char* value) { SetOwnerAlias(value); return *this;} /** *

The name of the security group.

*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *

The name of the security group.

*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *

The name of the security group.

*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *

The name of the security group.

*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *

The name of the security group.

*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *

The name of the security group.

*/ inline SourceSecurityGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *

The name of the security group.

*/ inline SourceSecurityGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *

The name of the security group.

*/ inline SourceSecurityGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;} private: Aws::String m_ownerAlias; bool m_ownerAliasHasBeenSet = false; Aws::String m_groupName; bool m_groupNameHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancing } // namespace Aws