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

135 lines
3.9 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace ElasticLoadBalancing
{
namespace Model
{
/**
* <p>Information about a source security group.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SourceSecurityGroup">AWS
* API Reference</a></p>
*/
class AWS_ELASTICLOADBALANCING_API SourceSecurityGroup
{
public:
SourceSecurityGroup();
SourceSecurityGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
SourceSecurityGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>The owner of the security group.</p>
*/
inline const Aws::String& GetOwnerAlias() const{ return m_ownerAlias; }
/**
* <p>The owner of the security group.</p>
*/
inline bool OwnerAliasHasBeenSet() const { return m_ownerAliasHasBeenSet; }
/**
* <p>The owner of the security group.</p>
*/
inline void SetOwnerAlias(const Aws::String& value) { m_ownerAliasHasBeenSet = true; m_ownerAlias = value; }
/**
* <p>The owner of the security group.</p>
*/
inline void SetOwnerAlias(Aws::String&& value) { m_ownerAliasHasBeenSet = true; m_ownerAlias = std::move(value); }
/**
* <p>The owner of the security group.</p>
*/
inline void SetOwnerAlias(const char* value) { m_ownerAliasHasBeenSet = true; m_ownerAlias.assign(value); }
/**
* <p>The owner of the security group.</p>
*/
inline SourceSecurityGroup& WithOwnerAlias(const Aws::String& value) { SetOwnerAlias(value); return *this;}
/**
* <p>The owner of the security group.</p>
*/
inline SourceSecurityGroup& WithOwnerAlias(Aws::String&& value) { SetOwnerAlias(std::move(value)); return *this;}
/**
* <p>The owner of the security group.</p>
*/
inline SourceSecurityGroup& WithOwnerAlias(const char* value) { SetOwnerAlias(value); return *this;}
/**
* <p>The name of the security group.</p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p>The name of the security group.</p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p>The name of the security group.</p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p>The name of the security group.</p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p>The name of the security group.</p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p>The name of the security group.</p>
*/
inline SourceSecurityGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p>The name of the security group.</p>
*/
inline SourceSecurityGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p>The name of the security group.</p>
*/
inline SourceSecurityGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;}
private:
Aws::String m_ownerAlias;
bool m_ownerAliasHasBeenSet;
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
};
} // namespace Model
} // namespace ElasticLoadBalancing
} // namespace Aws