/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace Redshift { namespace Model { /** *

Describes a Redshift-managed VPC endpoint.

See Also:

AWS * API Reference

*/ class ModifyEndpointAccessResult { public: AWS_REDSHIFT_API ModifyEndpointAccessResult(); AWS_REDSHIFT_API ModifyEndpointAccessResult(const Aws::AmazonWebServiceResult& result); AWS_REDSHIFT_API ModifyEndpointAccessResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifier = value; } /** *

The cluster identifier of the cluster associated with the endpoint.

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

The cluster identifier of the cluster associated with the endpoint.

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

The cluster identifier of the cluster associated with the endpoint.

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

The cluster identifier of the cluster associated with the endpoint.

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

The cluster identifier of the cluster associated with the endpoint.

*/ inline ModifyEndpointAccessResult& 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 void SetResourceOwner(const Aws::String& value) { m_resourceOwner = value; } /** *

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

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

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

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

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

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

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

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

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

*/ inline ModifyEndpointAccessResult& 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 void SetSubnetGroupName(const Aws::String& value) { m_subnetGroupName = value; } /** *

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

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

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

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

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

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

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

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

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

*/ inline ModifyEndpointAccessResult& 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 void SetEndpointStatus(const Aws::String& value) { m_endpointStatus = value; } /** *

The status of the endpoint.

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

The status of the endpoint.

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

The status of the endpoint.

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

The status of the endpoint.

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

The status of the endpoint.

*/ inline ModifyEndpointAccessResult& 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 void SetEndpointName(const Aws::String& value) { m_endpointName = value; } /** *

The name of the endpoint.

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

The name of the endpoint.

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

The name of the endpoint.

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

The name of the endpoint.

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

The name of the endpoint.

*/ inline ModifyEndpointAccessResult& 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 void SetEndpointCreateTime(const Aws::Utils::DateTime& value) { m_endpointCreateTime = value; } /** *

The time (UTC) that the endpoint was created.

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

The time (UTC) that the endpoint was created.

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

The time (UTC) that the endpoint was created.

*/ inline ModifyEndpointAccessResult& 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 void SetPort(int value) { m_port = value; } /** *

The port number on which the cluster accepts incoming connections.

*/ inline ModifyEndpointAccessResult& 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 void SetAddress(const Aws::String& value) { m_address = value; } /** *

The DNS address of the endpoint.

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

The DNS address of the endpoint.

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

The DNS address of the endpoint.

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

The DNS address of the endpoint.

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

The DNS address of the endpoint.

*/ inline ModifyEndpointAccessResult& 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 void SetVpcSecurityGroups(const Aws::Vector& value) { m_vpcSecurityGroups = value; } /** *

The security groups associated with the endpoint.

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

The security groups associated with the endpoint.

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

The security groups associated with the endpoint.

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

The security groups associated with the endpoint.

*/ inline ModifyEndpointAccessResult& AddVpcSecurityGroups(const VpcSecurityGroupMembership& value) { m_vpcSecurityGroups.push_back(value); return *this; } /** *

The security groups associated with the endpoint.

*/ inline ModifyEndpointAccessResult& AddVpcSecurityGroups(VpcSecurityGroupMembership&& value) { m_vpcSecurityGroups.push_back(std::move(value)); return *this; } inline const VpcEndpoint& GetVpcEndpoint() const{ return m_vpcEndpoint; } inline void SetVpcEndpoint(const VpcEndpoint& value) { m_vpcEndpoint = value; } inline void SetVpcEndpoint(VpcEndpoint&& value) { m_vpcEndpoint = std::move(value); } inline ModifyEndpointAccessResult& WithVpcEndpoint(const VpcEndpoint& value) { SetVpcEndpoint(value); return *this;} inline ModifyEndpointAccessResult& 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 ModifyEndpointAccessResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline ModifyEndpointAccessResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_clusterIdentifier; Aws::String m_resourceOwner; Aws::String m_subnetGroupName; Aws::String m_endpointStatus; Aws::String m_endpointName; Aws::Utils::DateTime m_endpointCreateTime; int m_port; Aws::String m_address; Aws::Vector m_vpcSecurityGroups; VpcEndpoint m_vpcEndpoint; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace Redshift } // namespace Aws