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
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-rds/include/aws/rds/model/Subnet.h

212 lines
7.5 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/rds/RDS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/rds/model/AvailabilityZone.h>
#include <aws/rds/model/Outpost.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace RDS
{
namespace Model
{
/**
* <p> This data type is used as a response element for the
* <code>DescribeDBSubnetGroups</code> operation. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/Subnet">AWS API
* Reference</a></p>
*/
class AWS_RDS_API Subnet
{
public:
Subnet();
Subnet(const Aws::Utils::Xml::XmlNode& xmlNode);
Subnet& 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 identifier of the subnet.</p>
*/
inline const Aws::String& GetSubnetIdentifier() const{ return m_subnetIdentifier; }
/**
* <p>The identifier of the subnet.</p>
*/
inline bool SubnetIdentifierHasBeenSet() const { return m_subnetIdentifierHasBeenSet; }
/**
* <p>The identifier of the subnet.</p>
*/
inline void SetSubnetIdentifier(const Aws::String& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = value; }
/**
* <p>The identifier of the subnet.</p>
*/
inline void SetSubnetIdentifier(Aws::String&& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = std::move(value); }
/**
* <p>The identifier of the subnet.</p>
*/
inline void SetSubnetIdentifier(const char* value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier.assign(value); }
/**
* <p>The identifier of the subnet.</p>
*/
inline Subnet& WithSubnetIdentifier(const Aws::String& value) { SetSubnetIdentifier(value); return *this;}
/**
* <p>The identifier of the subnet.</p>
*/
inline Subnet& WithSubnetIdentifier(Aws::String&& value) { SetSubnetIdentifier(std::move(value)); return *this;}
/**
* <p>The identifier of the subnet.</p>
*/
inline Subnet& WithSubnetIdentifier(const char* value) { SetSubnetIdentifier(value); return *this;}
inline const AvailabilityZone& GetSubnetAvailabilityZone() const{ return m_subnetAvailabilityZone; }
inline bool SubnetAvailabilityZoneHasBeenSet() const { return m_subnetAvailabilityZoneHasBeenSet; }
inline void SetSubnetAvailabilityZone(const AvailabilityZone& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = value; }
inline void SetSubnetAvailabilityZone(AvailabilityZone&& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = std::move(value); }
inline Subnet& WithSubnetAvailabilityZone(const AvailabilityZone& value) { SetSubnetAvailabilityZone(value); return *this;}
inline Subnet& WithSubnetAvailabilityZone(AvailabilityZone&& value) { SetSubnetAvailabilityZone(std::move(value)); return *this;}
/**
* <p>If the subnet is associated with an Outpost, this value specifies the
* Outpost.</p> <p>For more information about RDS on Outposts, see <a
* href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Amazon
* RDS on AWS Outposts</a> in the <i>Amazon RDS User Guide.</i> </p>
*/
inline const Outpost& GetSubnetOutpost() const{ return m_subnetOutpost; }
/**
* <p>If the subnet is associated with an Outpost, this value specifies the
* Outpost.</p> <p>For more information about RDS on Outposts, see <a
* href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Amazon
* RDS on AWS Outposts</a> in the <i>Amazon RDS User Guide.</i> </p>
*/
inline bool SubnetOutpostHasBeenSet() const { return m_subnetOutpostHasBeenSet; }
/**
* <p>If the subnet is associated with an Outpost, this value specifies the
* Outpost.</p> <p>For more information about RDS on Outposts, see <a
* href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Amazon
* RDS on AWS Outposts</a> in the <i>Amazon RDS User Guide.</i> </p>
*/
inline void SetSubnetOutpost(const Outpost& value) { m_subnetOutpostHasBeenSet = true; m_subnetOutpost = value; }
/**
* <p>If the subnet is associated with an Outpost, this value specifies the
* Outpost.</p> <p>For more information about RDS on Outposts, see <a
* href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Amazon
* RDS on AWS Outposts</a> in the <i>Amazon RDS User Guide.</i> </p>
*/
inline void SetSubnetOutpost(Outpost&& value) { m_subnetOutpostHasBeenSet = true; m_subnetOutpost = std::move(value); }
/**
* <p>If the subnet is associated with an Outpost, this value specifies the
* Outpost.</p> <p>For more information about RDS on Outposts, see <a
* href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Amazon
* RDS on AWS Outposts</a> in the <i>Amazon RDS User Guide.</i> </p>
*/
inline Subnet& WithSubnetOutpost(const Outpost& value) { SetSubnetOutpost(value); return *this;}
/**
* <p>If the subnet is associated with an Outpost, this value specifies the
* Outpost.</p> <p>For more information about RDS on Outposts, see <a
* href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html">Amazon
* RDS on AWS Outposts</a> in the <i>Amazon RDS User Guide.</i> </p>
*/
inline Subnet& WithSubnetOutpost(Outpost&& value) { SetSubnetOutpost(std::move(value)); return *this;}
/**
* <p>The status of the subnet.</p>
*/
inline const Aws::String& GetSubnetStatus() const{ return m_subnetStatus; }
/**
* <p>The status of the subnet.</p>
*/
inline bool SubnetStatusHasBeenSet() const { return m_subnetStatusHasBeenSet; }
/**
* <p>The status of the subnet.</p>
*/
inline void SetSubnetStatus(const Aws::String& value) { m_subnetStatusHasBeenSet = true; m_subnetStatus = value; }
/**
* <p>The status of the subnet.</p>
*/
inline void SetSubnetStatus(Aws::String&& value) { m_subnetStatusHasBeenSet = true; m_subnetStatus = std::move(value); }
/**
* <p>The status of the subnet.</p>
*/
inline void SetSubnetStatus(const char* value) { m_subnetStatusHasBeenSet = true; m_subnetStatus.assign(value); }
/**
* <p>The status of the subnet.</p>
*/
inline Subnet& WithSubnetStatus(const Aws::String& value) { SetSubnetStatus(value); return *this;}
/**
* <p>The status of the subnet.</p>
*/
inline Subnet& WithSubnetStatus(Aws::String&& value) { SetSubnetStatus(std::move(value)); return *this;}
/**
* <p>The status of the subnet.</p>
*/
inline Subnet& WithSubnetStatus(const char* value) { SetSubnetStatus(value); return *this;}
private:
Aws::String m_subnetIdentifier;
bool m_subnetIdentifierHasBeenSet;
AvailabilityZone m_subnetAvailabilityZone;
bool m_subnetAvailabilityZoneHasBeenSet;
Outpost m_subnetOutpost;
bool m_subnetOutpostHasBeenSet;
Aws::String m_subnetStatus;
bool m_subnetStatusHasBeenSet;
};
} // namespace Model
} // namespace RDS
} // namespace Aws