/** * 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 S3Control { namespace Model { class GetAccessPointResult { public: AWS_S3CONTROL_API GetAccessPointResult(); AWS_S3CONTROL_API GetAccessPointResult(const Aws::AmazonWebServiceResult& result); AWS_S3CONTROL_API 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.

This * will always be true for an Amazon S3 on Outposts access point

*/ 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.

This * will always be true for an Amazon S3 on Outposts access point

*/ 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.

This * will always be true for an Amazon S3 on Outposts access point

*/ 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.

This * will always be true for an Amazon S3 on Outposts access point

*/ 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.

This * will always be true for an Amazon S3 on Outposts access point

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

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

This element is empty if this access point is an * Amazon S3 on Outposts access point that is used by other Amazon Web * Services.

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

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

This element is empty if this access point is an * Amazon S3 on Outposts access point that is used by other Amazon Web * Services.

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

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

This element is empty if this access point is an * Amazon S3 on Outposts access point that is used by other Amazon Web * Services.

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

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

This element is empty if this access point is an * Amazon S3 on Outposts access point that is used by other Amazon Web * Services.

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

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

This element is empty if this access point is an * Amazon S3 on Outposts access point that is used by other Amazon Web * Services.

*/ 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;} /** *

The name or alias of the access point.

*/ inline const Aws::String& GetAlias() const{ return m_alias; } /** *

The name or alias of the access point.

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

The name or alias of the access point.

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

The name or alias of the access point.

*/ inline void SetAlias(const char* value) { m_alias.assign(value); } /** *

The name or alias of the access point.

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

The name or alias of the access point.

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

The name or alias of the access point.

*/ inline GetAccessPointResult& WithAlias(const char* value) { SetAlias(value); return *this;} /** *

The ARN of the access point.

*/ inline const Aws::String& GetAccessPointArn() const{ return m_accessPointArn; } /** *

The ARN of the access point.

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

The ARN of the access point.

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

The ARN of the access point.

*/ inline void SetAccessPointArn(const char* value) { m_accessPointArn.assign(value); } /** *

The ARN of the access point.

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

The ARN of the access point.

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

The ARN of the access point.

*/ inline GetAccessPointResult& WithAccessPointArn(const char* value) { SetAccessPointArn(value); return *this;} /** *

The VPC endpoint for the access point.

*/ inline const Aws::Map& GetEndpoints() const{ return m_endpoints; } /** *

The VPC endpoint for the access point.

*/ inline void SetEndpoints(const Aws::Map& value) { m_endpoints = value; } /** *

The VPC endpoint for the access point.

*/ inline void SetEndpoints(Aws::Map&& value) { m_endpoints = std::move(value); } /** *

The VPC endpoint for the access point.

*/ inline GetAccessPointResult& WithEndpoints(const Aws::Map& value) { SetEndpoints(value); return *this;} /** *

The VPC endpoint for the access point.

*/ inline GetAccessPointResult& WithEndpoints(Aws::Map&& value) { SetEndpoints(std::move(value)); return *this;} /** *

The VPC endpoint for the access point.

*/ inline GetAccessPointResult& AddEndpoints(const Aws::String& key, const Aws::String& value) { m_endpoints.emplace(key, value); return *this; } /** *

The VPC endpoint for the access point.

*/ inline GetAccessPointResult& AddEndpoints(Aws::String&& key, const Aws::String& value) { m_endpoints.emplace(std::move(key), value); return *this; } /** *

The VPC endpoint for the access point.

*/ inline GetAccessPointResult& AddEndpoints(const Aws::String& key, Aws::String&& value) { m_endpoints.emplace(key, std::move(value)); return *this; } /** *

The VPC endpoint for the access point.

*/ inline GetAccessPointResult& AddEndpoints(Aws::String&& key, Aws::String&& value) { m_endpoints.emplace(std::move(key), std::move(value)); return *this; } /** *

The VPC endpoint for the access point.

*/ inline GetAccessPointResult& AddEndpoints(const char* key, Aws::String&& value) { m_endpoints.emplace(key, std::move(value)); return *this; } /** *

The VPC endpoint for the access point.

*/ inline GetAccessPointResult& AddEndpoints(Aws::String&& key, const char* value) { m_endpoints.emplace(std::move(key), value); return *this; } /** *

The VPC endpoint for the access point.

*/ inline GetAccessPointResult& AddEndpoints(const char* key, const char* value) { m_endpoints.emplace(key, value); return *this; } /** *

The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.

*/ inline const Aws::String& GetBucketAccountId() const{ return m_bucketAccountId; } /** *

The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.

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

The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.

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

The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.

*/ inline void SetBucketAccountId(const char* value) { m_bucketAccountId.assign(value); } /** *

The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.

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

The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.

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

The Amazon Web Services account ID associated with the S3 bucket associated * with this access point.

*/ inline GetAccessPointResult& WithBucketAccountId(const char* value) { SetBucketAccountId(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetAccessPointResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetAccessPointResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetAccessPointResult& WithRequestId(const char* value) { SetRequestId(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; Aws::String m_alias; Aws::String m_accessPointArn; Aws::Map m_endpoints; Aws::String m_bucketAccountId; Aws::String m_requestId; }; } // namespace Model } // namespace S3Control } // namespace Aws