All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.awsconnector.outputs.AwsEc2VPCEndpointPropertiesResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.awsconnector.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AwsEc2VPCEndpointPropertiesResponse {
    /**
     * @return Property creationTimestamp
     * 
     */
    private @Nullable String creationTimestamp;
    /**
     * @return Property dnsEntries
     * 
     */
    private @Nullable List dnsEntries;
    /**
     * @return Property id
     * 
     */
    private @Nullable String id;
    /**
     * @return Property networkInterfaceIds
     * 
     */
    private @Nullable List networkInterfaceIds;
    /**
     * @return An endpoint policy, which controls access to the service from the VPC. The default endpoint policy allows full access to the service. Endpoint policies are supported only for gateway and interface endpoints. For CloudFormation templates in YAML, you can provide the policy in JSON or YAML format. CFNlong converts YAML policies to JSON format before calling the API to create or modify the VPC endpoint.
     * 
     */
    private @Nullable Object policyDocument;
    /**
     * @return Indicate whether to associate a private hosted zone with the specified VPC. The private hosted zone contains a record set for the default public DNS name for the service for the Region (for example, ``kinesis.us-east-1.amazonaws.com``), which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service. To use a private hosted zone, you must set the following VPC attributes to ``true``: ``enableDnsHostnames`` and ``enableDnsSupport``. This property is supported only for interface endpoints. Default: ``false``
     * 
     */
    private @Nullable Boolean privateDnsEnabled;
    /**
     * @return The IDs of the route tables. Routing is supported only for gateway endpoints.
     * 
     */
    private @Nullable List routeTableIds;
    /**
     * @return The IDs of the security groups to associate with the endpoint network interfaces. If this parameter is not specified, we use the default security group for the VPC. Security groups are supported only for interface endpoints.
     * 
     */
    private @Nullable List securityGroupIds;
    /**
     * @return The name of the endpoint service.
     * 
     */
    private @Nullable String serviceName;
    /**
     * @return The IDs of the subnets in which to create endpoint network interfaces. You must specify this property for an interface endpoint or a Gateway Load Balancer endpoint. You can't specify this property for a gateway endpoint. For a Gateway Load Balancer endpoint, you can specify only one subnet.
     * 
     */
    private @Nullable List subnetIds;
    /**
     * @return The type of endpoint. Default: Gateway
     * 
     */
    private @Nullable String vpcEndpointType;
    /**
     * @return The ID of the VPC.
     * 
     */
    private @Nullable String vpcId;

    private AwsEc2VPCEndpointPropertiesResponse() {}
    /**
     * @return Property creationTimestamp
     * 
     */
    public Optional creationTimestamp() {
        return Optional.ofNullable(this.creationTimestamp);
    }
    /**
     * @return Property dnsEntries
     * 
     */
    public List dnsEntries() {
        return this.dnsEntries == null ? List.of() : this.dnsEntries;
    }
    /**
     * @return Property id
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return Property networkInterfaceIds
     * 
     */
    public List networkInterfaceIds() {
        return this.networkInterfaceIds == null ? List.of() : this.networkInterfaceIds;
    }
    /**
     * @return An endpoint policy, which controls access to the service from the VPC. The default endpoint policy allows full access to the service. Endpoint policies are supported only for gateway and interface endpoints. For CloudFormation templates in YAML, you can provide the policy in JSON or YAML format. CFNlong converts YAML policies to JSON format before calling the API to create or modify the VPC endpoint.
     * 
     */
    public Optional policyDocument() {
        return Optional.ofNullable(this.policyDocument);
    }
    /**
     * @return Indicate whether to associate a private hosted zone with the specified VPC. The private hosted zone contains a record set for the default public DNS name for the service for the Region (for example, ``kinesis.us-east-1.amazonaws.com``), which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service. To use a private hosted zone, you must set the following VPC attributes to ``true``: ``enableDnsHostnames`` and ``enableDnsSupport``. This property is supported only for interface endpoints. Default: ``false``
     * 
     */
    public Optional privateDnsEnabled() {
        return Optional.ofNullable(this.privateDnsEnabled);
    }
    /**
     * @return The IDs of the route tables. Routing is supported only for gateway endpoints.
     * 
     */
    public List routeTableIds() {
        return this.routeTableIds == null ? List.of() : this.routeTableIds;
    }
    /**
     * @return The IDs of the security groups to associate with the endpoint network interfaces. If this parameter is not specified, we use the default security group for the VPC. Security groups are supported only for interface endpoints.
     * 
     */
    public List securityGroupIds() {
        return this.securityGroupIds == null ? List.of() : this.securityGroupIds;
    }
    /**
     * @return The name of the endpoint service.
     * 
     */
    public Optional serviceName() {
        return Optional.ofNullable(this.serviceName);
    }
    /**
     * @return The IDs of the subnets in which to create endpoint network interfaces. You must specify this property for an interface endpoint or a Gateway Load Balancer endpoint. You can't specify this property for a gateway endpoint. For a Gateway Load Balancer endpoint, you can specify only one subnet.
     * 
     */
    public List subnetIds() {
        return this.subnetIds == null ? List.of() : this.subnetIds;
    }
    /**
     * @return The type of endpoint. Default: Gateway
     * 
     */
    public Optional vpcEndpointType() {
        return Optional.ofNullable(this.vpcEndpointType);
    }
    /**
     * @return The ID of the VPC.
     * 
     */
    public Optional vpcId() {
        return Optional.ofNullable(this.vpcId);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(AwsEc2VPCEndpointPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String creationTimestamp;
        private @Nullable List dnsEntries;
        private @Nullable String id;
        private @Nullable List networkInterfaceIds;
        private @Nullable Object policyDocument;
        private @Nullable Boolean privateDnsEnabled;
        private @Nullable List routeTableIds;
        private @Nullable List securityGroupIds;
        private @Nullable String serviceName;
        private @Nullable List subnetIds;
        private @Nullable String vpcEndpointType;
        private @Nullable String vpcId;
        public Builder() {}
        public Builder(AwsEc2VPCEndpointPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.creationTimestamp = defaults.creationTimestamp;
    	      this.dnsEntries = defaults.dnsEntries;
    	      this.id = defaults.id;
    	      this.networkInterfaceIds = defaults.networkInterfaceIds;
    	      this.policyDocument = defaults.policyDocument;
    	      this.privateDnsEnabled = defaults.privateDnsEnabled;
    	      this.routeTableIds = defaults.routeTableIds;
    	      this.securityGroupIds = defaults.securityGroupIds;
    	      this.serviceName = defaults.serviceName;
    	      this.subnetIds = defaults.subnetIds;
    	      this.vpcEndpointType = defaults.vpcEndpointType;
    	      this.vpcId = defaults.vpcId;
        }

        @CustomType.Setter
        public Builder creationTimestamp(@Nullable String creationTimestamp) {

            this.creationTimestamp = creationTimestamp;
            return this;
        }
        @CustomType.Setter
        public Builder dnsEntries(@Nullable List dnsEntries) {

            this.dnsEntries = dnsEntries;
            return this;
        }
        public Builder dnsEntries(String... dnsEntries) {
            return dnsEntries(List.of(dnsEntries));
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {

            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder networkInterfaceIds(@Nullable List networkInterfaceIds) {

            this.networkInterfaceIds = networkInterfaceIds;
            return this;
        }
        public Builder networkInterfaceIds(String... networkInterfaceIds) {
            return networkInterfaceIds(List.of(networkInterfaceIds));
        }
        @CustomType.Setter
        public Builder policyDocument(@Nullable Object policyDocument) {

            this.policyDocument = policyDocument;
            return this;
        }
        @CustomType.Setter
        public Builder privateDnsEnabled(@Nullable Boolean privateDnsEnabled) {

            this.privateDnsEnabled = privateDnsEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder routeTableIds(@Nullable List routeTableIds) {

            this.routeTableIds = routeTableIds;
            return this;
        }
        public Builder routeTableIds(String... routeTableIds) {
            return routeTableIds(List.of(routeTableIds));
        }
        @CustomType.Setter
        public Builder securityGroupIds(@Nullable List securityGroupIds) {

            this.securityGroupIds = securityGroupIds;
            return this;
        }
        public Builder securityGroupIds(String... securityGroupIds) {
            return securityGroupIds(List.of(securityGroupIds));
        }
        @CustomType.Setter
        public Builder serviceName(@Nullable String serviceName) {

            this.serviceName = serviceName;
            return this;
        }
        @CustomType.Setter
        public Builder subnetIds(@Nullable List subnetIds) {

            this.subnetIds = subnetIds;
            return this;
        }
        public Builder subnetIds(String... subnetIds) {
            return subnetIds(List.of(subnetIds));
        }
        @CustomType.Setter
        public Builder vpcEndpointType(@Nullable String vpcEndpointType) {

            this.vpcEndpointType = vpcEndpointType;
            return this;
        }
        @CustomType.Setter
        public Builder vpcId(@Nullable String vpcId) {

            this.vpcId = vpcId;
            return this;
        }
        public AwsEc2VPCEndpointPropertiesResponse build() {
            final var _resultValue = new AwsEc2VPCEndpointPropertiesResponse();
            _resultValue.creationTimestamp = creationTimestamp;
            _resultValue.dnsEntries = dnsEntries;
            _resultValue.id = id;
            _resultValue.networkInterfaceIds = networkInterfaceIds;
            _resultValue.policyDocument = policyDocument;
            _resultValue.privateDnsEnabled = privateDnsEnabled;
            _resultValue.routeTableIds = routeTableIds;
            _resultValue.securityGroupIds = securityGroupIds;
            _resultValue.serviceName = serviceName;
            _resultValue.subnetIds = subnetIds;
            _resultValue.vpcEndpointType = vpcEndpointType;
            _resultValue.vpcId = vpcId;
            return _resultValue;
        }
    }
}