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

Describes a Redshift-managed VPC endpoint.

See Also:

AWS * API Reference

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

The cluster identifier of the cluster associated with the endpoint.

*/ inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; } /** *

The cluster identifier of the cluster associated with the endpoint.

*/ inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; } /** *

The cluster identifier of the cluster associated with the endpoint.

*/ inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; } /** *

The cluster identifier of the cluster associated with the endpoint.

*/ inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); } /** *

The cluster identifier of the cluster associated with the endpoint.

*/ inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); } /** *

The cluster identifier of the cluster associated with the endpoint.

*/ inline EndpointAccess& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;} /** *

The cluster identifier of the cluster associated with the endpoint.

*/ inline EndpointAccess& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;} /** *

The cluster identifier of the cluster associated with the endpoint.

*/ inline EndpointAccess& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;} /** *

The Amazon Web Services account ID of the owner of the cluster.

*/ inline const Aws::String& GetResourceOwner() const{ return m_resourceOwner; } /** *

The Amazon Web Services account ID of the owner of the cluster.

*/ inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; } /** *

The Amazon Web Services account ID of the owner of the cluster.

*/ inline void SetResourceOwner(const Aws::String& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; } /** *

The Amazon Web Services account ID of the owner of the cluster.

*/ inline void SetResourceOwner(Aws::String&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); } /** *

The Amazon Web Services account ID of the owner of the cluster.

*/ inline void SetResourceOwner(const char* value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner.assign(value); } /** *

The Amazon Web Services account ID of the owner of the cluster.

*/ inline EndpointAccess& WithResourceOwner(const Aws::String& value) { SetResourceOwner(value); return *this;} /** *

The Amazon Web Services account ID of the owner of the cluster.

*/ inline EndpointAccess& WithResourceOwner(Aws::String&& value) { SetResourceOwner(std::move(value)); return *this;} /** *

The Amazon Web Services account ID of the owner of the cluster.

*/ inline EndpointAccess& WithResourceOwner(const char* value) { SetResourceOwner(value); return *this;} /** *

The subnet group name where Amazon Redshift chooses to deploy the * endpoint.

*/ inline const Aws::String& GetSubnetGroupName() const{ return m_subnetGroupName; } /** *

The subnet group name where Amazon Redshift chooses to deploy the * endpoint.

*/ inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; } /** *

The subnet group name where Amazon Redshift chooses to deploy the * endpoint.

*/ inline void SetSubnetGroupName(const Aws::String& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = value; } /** *

The subnet group name where Amazon Redshift chooses to deploy the * endpoint.

*/ inline void SetSubnetGroupName(Aws::String&& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = std::move(value); } /** *

The subnet group name where Amazon Redshift chooses to deploy the * endpoint.

*/ inline void SetSubnetGroupName(const char* value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName.assign(value); } /** *

The subnet group name where Amazon Redshift chooses to deploy the * endpoint.

*/ inline EndpointAccess& WithSubnetGroupName(const Aws::String& value) { SetSubnetGroupName(value); return *this;} /** *

The subnet group name where Amazon Redshift chooses to deploy the * endpoint.

*/ inline EndpointAccess& WithSubnetGroupName(Aws::String&& value) { SetSubnetGroupName(std::move(value)); return *this;} /** *

The subnet group name where Amazon Redshift chooses to deploy the * endpoint.

*/ inline EndpointAccess& WithSubnetGroupName(const char* value) { SetSubnetGroupName(value); return *this;} /** *

The status of the endpoint.

*/ inline const Aws::String& GetEndpointStatus() const{ return m_endpointStatus; } /** *

The status of the endpoint.

*/ inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; } /** *

The status of the endpoint.

*/ inline void SetEndpointStatus(const Aws::String& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = value; } /** *

The status of the endpoint.

*/ inline void SetEndpointStatus(Aws::String&& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = std::move(value); } /** *

The status of the endpoint.

*/ inline void SetEndpointStatus(const char* value) { m_endpointStatusHasBeenSet = true; m_endpointStatus.assign(value); } /** *

The status of the endpoint.

*/ inline EndpointAccess& WithEndpointStatus(const Aws::String& value) { SetEndpointStatus(value); return *this;} /** *

The status of the endpoint.

*/ inline EndpointAccess& WithEndpointStatus(Aws::String&& value) { SetEndpointStatus(std::move(value)); return *this;} /** *

The status of the endpoint.

*/ inline EndpointAccess& WithEndpointStatus(const char* value) { SetEndpointStatus(value); return *this;} /** *

The name of the endpoint.

*/ inline const Aws::String& GetEndpointName() const{ return m_endpointName; } /** *

The name of the endpoint.

*/ inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; } /** *

The name of the endpoint.

*/ inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; } /** *

The name of the endpoint.

*/ inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); } /** *

The name of the endpoint.

*/ inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); } /** *

The name of the endpoint.

*/ inline EndpointAccess& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;} /** *

The name of the endpoint.

*/ inline EndpointAccess& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;} /** *

The name of the endpoint.

*/ inline EndpointAccess& WithEndpointName(const char* value) { SetEndpointName(value); return *this;} /** *

The time (UTC) that the endpoint was created.

*/ inline const Aws::Utils::DateTime& GetEndpointCreateTime() const{ return m_endpointCreateTime; } /** *

The time (UTC) that the endpoint was created.

*/ inline bool EndpointCreateTimeHasBeenSet() const { return m_endpointCreateTimeHasBeenSet; } /** *

The time (UTC) that the endpoint was created.

*/ inline void SetEndpointCreateTime(const Aws::Utils::DateTime& value) { m_endpointCreateTimeHasBeenSet = true; m_endpointCreateTime = value; } /** *

The time (UTC) that the endpoint was created.

*/ inline void SetEndpointCreateTime(Aws::Utils::DateTime&& value) { m_endpointCreateTimeHasBeenSet = true; m_endpointCreateTime = std::move(value); } /** *

The time (UTC) that the endpoint was created.

*/ inline EndpointAccess& WithEndpointCreateTime(const Aws::Utils::DateTime& value) { SetEndpointCreateTime(value); return *this;} /** *

The time (UTC) that the endpoint was created.

*/ inline EndpointAccess& WithEndpointCreateTime(Aws::Utils::DateTime&& value) { SetEndpointCreateTime(std::move(value)); return *this;} /** *

The port number on which the cluster accepts incoming connections.

*/ inline int GetPort() const{ return m_port; } /** *

The port number on which the cluster accepts incoming connections.

*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *

The port number on which the cluster accepts incoming connections.

*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *

The port number on which the cluster accepts incoming connections.

*/ inline EndpointAccess& WithPort(int value) { SetPort(value); return *this;} /** *

The DNS address of the endpoint.

*/ inline const Aws::String& GetAddress() const{ return m_address; } /** *

The DNS address of the endpoint.

*/ inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; } /** *

The DNS address of the endpoint.

*/ inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; } /** *

The DNS address of the endpoint.

*/ inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); } /** *

The DNS address of the endpoint.

*/ inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); } /** *

The DNS address of the endpoint.

*/ inline EndpointAccess& WithAddress(const Aws::String& value) { SetAddress(value); return *this;} /** *

The DNS address of the endpoint.

*/ inline EndpointAccess& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;} /** *

The DNS address of the endpoint.

*/ inline EndpointAccess& WithAddress(const char* value) { SetAddress(value); return *this;} /** *

The security groups associated with the endpoint.

*/ inline const Aws::Vector& GetVpcSecurityGroups() const{ return m_vpcSecurityGroups; } /** *

The security groups associated with the endpoint.

*/ inline bool VpcSecurityGroupsHasBeenSet() const { return m_vpcSecurityGroupsHasBeenSet; } /** *

The security groups associated with the endpoint.

*/ inline void SetVpcSecurityGroups(const Aws::Vector& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups = value; } /** *

The security groups associated with the endpoint.

*/ inline void SetVpcSecurityGroups(Aws::Vector&& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups = std::move(value); } /** *

The security groups associated with the endpoint.

*/ inline EndpointAccess& WithVpcSecurityGroups(const Aws::Vector& value) { SetVpcSecurityGroups(value); return *this;} /** *

The security groups associated with the endpoint.

*/ inline EndpointAccess& WithVpcSecurityGroups(Aws::Vector&& value) { SetVpcSecurityGroups(std::move(value)); return *this;} /** *

The security groups associated with the endpoint.

*/ inline EndpointAccess& AddVpcSecurityGroups(const VpcSecurityGroupMembership& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups.push_back(value); return *this; } /** *

The security groups associated with the endpoint.

*/ inline EndpointAccess& AddVpcSecurityGroups(VpcSecurityGroupMembership&& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups.push_back(std::move(value)); return *this; } inline const VpcEndpoint& GetVpcEndpoint() const{ return m_vpcEndpoint; } inline bool VpcEndpointHasBeenSet() const { return m_vpcEndpointHasBeenSet; } inline void SetVpcEndpoint(const VpcEndpoint& value) { m_vpcEndpointHasBeenSet = true; m_vpcEndpoint = value; } inline void SetVpcEndpoint(VpcEndpoint&& value) { m_vpcEndpointHasBeenSet = true; m_vpcEndpoint = std::move(value); } inline EndpointAccess& WithVpcEndpoint(const VpcEndpoint& value) { SetVpcEndpoint(value); return *this;} inline EndpointAccess& WithVpcEndpoint(VpcEndpoint&& value) { SetVpcEndpoint(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline EndpointAccess& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline EndpointAccess& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_clusterIdentifier; bool m_clusterIdentifierHasBeenSet = false; Aws::String m_resourceOwner; bool m_resourceOwnerHasBeenSet = false; Aws::String m_subnetGroupName; bool m_subnetGroupNameHasBeenSet = false; Aws::String m_endpointStatus; bool m_endpointStatusHasBeenSet = false; Aws::String m_endpointName; bool m_endpointNameHasBeenSet = false; Aws::Utils::DateTime m_endpointCreateTime; bool m_endpointCreateTimeHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; Aws::String m_address; bool m_addressHasBeenSet = false; Aws::Vector m_vpcSecurityGroups; bool m_vpcSecurityGroupsHasBeenSet = false; VpcEndpoint m_vpcEndpoint; bool m_vpcEndpointHasBeenSet = false; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace Redshift } // namespace Aws