/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace S3Control { namespace Model { class AWS_S3CONTROL_API GetAccessPointResult { public: GetAccessPointResult(); GetAccessPointResult(const Aws::AmazonWebServiceResult& result); GetAccessPointResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the specified access point.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the specified access point.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the specified access point.

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

The name of the specified access point.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the specified access point.

*/ inline GetAccessPointResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the specified access point.

*/ inline GetAccessPointResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the specified access point.

*/ inline GetAccessPointResult& WithName(const char* value) { SetName(value); return *this;} /** *

The name of the bucket associated with the specified access point.

*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *

The name of the bucket associated with the specified access point.

*/ inline void SetBucket(const Aws::String& value) { m_bucket = value; } /** *

The name of the bucket associated with the specified access point.

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

The name of the bucket associated with the specified access point.

*/ inline void SetBucket(const char* value) { m_bucket.assign(value); } /** *

The name of the bucket associated with the specified access point.

*/ inline GetAccessPointResult& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *

The name of the bucket associated with the specified access point.

*/ inline GetAccessPointResult& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *

The name of the bucket associated with the specified access point.

*/ inline GetAccessPointResult& WithBucket(const char* value) { SetBucket(value); return *this;} /** *

Indicates whether this access point allows access from the public internet. * If VpcConfiguration is specified for this access point, then * NetworkOrigin is VPC, and the access point doesn't * allow access from the public internet. Otherwise, NetworkOrigin is * Internet, and the access point allows access from the public * internet, subject to the access point and bucket access policies.

*/ inline const NetworkOrigin& GetNetworkOrigin() const{ return m_networkOrigin; } /** *

Indicates whether this access point allows access from the public internet. * If VpcConfiguration is specified for this access point, then * NetworkOrigin is VPC, and the access point doesn't * allow access from the public internet. Otherwise, NetworkOrigin is * Internet, and the access point allows access from the public * internet, subject to the access point and bucket access policies.

*/ inline void SetNetworkOrigin(const NetworkOrigin& value) { m_networkOrigin = value; } /** *

Indicates whether this access point allows access from the public internet. * If VpcConfiguration is specified for this access point, then * NetworkOrigin is VPC, and the access point doesn't * allow access from the public internet. Otherwise, NetworkOrigin is * Internet, and the access point allows access from the public * internet, subject to the access point and bucket access policies.

*/ inline void SetNetworkOrigin(NetworkOrigin&& value) { m_networkOrigin = std::move(value); } /** *

Indicates whether this access point allows access from the public internet. * If VpcConfiguration is specified for this access point, then * NetworkOrigin is VPC, and the access point doesn't * allow access from the public internet. Otherwise, NetworkOrigin is * Internet, and the access point allows access from the public * internet, subject to the access point and bucket access policies.

*/ inline GetAccessPointResult& WithNetworkOrigin(const NetworkOrigin& value) { SetNetworkOrigin(value); return *this;} /** *

Indicates whether this access point allows access from the public internet. * If VpcConfiguration is specified for this access point, then * NetworkOrigin is VPC, and the access point doesn't * allow access from the public internet. Otherwise, NetworkOrigin is * Internet, and the access point allows access from the public * internet, subject to the access point and bucket access policies.

*/ inline GetAccessPointResult& WithNetworkOrigin(NetworkOrigin&& value) { SetNetworkOrigin(std::move(value)); return *this;} /** *

Contains the virtual private cloud (VPC) configuration for the specified * access point.

*/ inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; } /** *

Contains the virtual private cloud (VPC) configuration for the specified * access point.

*/ inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfiguration = value; } /** *

Contains the virtual private cloud (VPC) configuration for the specified * access point.

*/ inline void SetVpcConfiguration(VpcConfiguration&& value) { m_vpcConfiguration = std::move(value); } /** *

Contains the virtual private cloud (VPC) configuration for the specified * access point.

*/ inline GetAccessPointResult& WithVpcConfiguration(const VpcConfiguration& value) { SetVpcConfiguration(value); return *this;} /** *

Contains the virtual private cloud (VPC) configuration for the specified * access point.

*/ inline GetAccessPointResult& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;} inline const PublicAccessBlockConfiguration& GetPublicAccessBlockConfiguration() const{ return m_publicAccessBlockConfiguration; } inline void SetPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration& value) { m_publicAccessBlockConfiguration = value; } inline void SetPublicAccessBlockConfiguration(PublicAccessBlockConfiguration&& value) { m_publicAccessBlockConfiguration = std::move(value); } inline GetAccessPointResult& WithPublicAccessBlockConfiguration(const PublicAccessBlockConfiguration& value) { SetPublicAccessBlockConfiguration(value); return *this;} inline GetAccessPointResult& WithPublicAccessBlockConfiguration(PublicAccessBlockConfiguration&& value) { SetPublicAccessBlockConfiguration(std::move(value)); return *this;} /** *

The date and time when the specified access point was created.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

The date and time when the specified access point was created.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; } /** *

The date and time when the specified access point was created.

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

The date and time when the specified access point was created.

*/ inline GetAccessPointResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The date and time when the specified access point was created.

*/ inline GetAccessPointResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} private: Aws::String m_name; Aws::String m_bucket; NetworkOrigin m_networkOrigin; VpcConfiguration m_vpcConfiguration; PublicAccessBlockConfiguration m_publicAccessBlockConfiguration; Aws::Utils::DateTime m_creationDate; }; } // namespace Model } // namespace S3Control } // namespace Aws