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

com.pulumi.azurenative.network.outputs.GetInterfaceEndpointResult Maven / Gradle / Ivy

// *** 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.network.outputs;

import com.pulumi.azurenative.network.outputs.EndpointServiceResponse;
import com.pulumi.azurenative.network.outputs.NetworkInterfaceResponse;
import com.pulumi.azurenative.network.outputs.SubnetResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetInterfaceEndpointResult {
    /**
     * @return A reference to the service being brought into the virtual network.
     * 
     */
    private @Nullable EndpointServiceResponse endpointService;
    /**
     * @return Gets a unique read-only string that changes whenever the resource is updated.
     * 
     */
    private @Nullable String etag;
    /**
     * @return A first-party service's FQDN that is mapped to the private IP allocated via this interface endpoint.
     * 
     */
    private @Nullable String fqdn;
    /**
     * @return Resource ID.
     * 
     */
    private @Nullable String id;
    /**
     * @return Resource location.
     * 
     */
    private @Nullable String location;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return Gets an array of references to the network interfaces created for this interface endpoint.
     * 
     */
    private List networkInterfaces;
    /**
     * @return A read-only property that identifies who created this interface endpoint.
     * 
     */
    private String owner;
    /**
     * @return The provisioning state of the interface endpoint. Possible values are: 'Updating', 'Deleting', and 'Failed'.
     * 
     */
    private String provisioningState;
    /**
     * @return The ID of the subnet from which the private IP will be allocated.
     * 
     */
    private @Nullable SubnetResponse subnet;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetInterfaceEndpointResult() {}
    /**
     * @return A reference to the service being brought into the virtual network.
     * 
     */
    public Optional endpointService() {
        return Optional.ofNullable(this.endpointService);
    }
    /**
     * @return Gets a unique read-only string that changes whenever the resource is updated.
     * 
     */
    public Optional etag() {
        return Optional.ofNullable(this.etag);
    }
    /**
     * @return A first-party service's FQDN that is mapped to the private IP allocated via this interface endpoint.
     * 
     */
    public Optional fqdn() {
        return Optional.ofNullable(this.fqdn);
    }
    /**
     * @return Resource ID.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return Resource location.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Gets an array of references to the network interfaces created for this interface endpoint.
     * 
     */
    public List networkInterfaces() {
        return this.networkInterfaces;
    }
    /**
     * @return A read-only property that identifies who created this interface endpoint.
     * 
     */
    public String owner() {
        return this.owner;
    }
    /**
     * @return The provisioning state of the interface endpoint. Possible values are: 'Updating', 'Deleting', and 'Failed'.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The ID of the subnet from which the private IP will be allocated.
     * 
     */
    public Optional subnet() {
        return Optional.ofNullable(this.subnet);
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetInterfaceEndpointResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable EndpointServiceResponse endpointService;
        private @Nullable String etag;
        private @Nullable String fqdn;
        private @Nullable String id;
        private @Nullable String location;
        private String name;
        private List networkInterfaces;
        private String owner;
        private String provisioningState;
        private @Nullable SubnetResponse subnet;
        private @Nullable Map tags;
        private String type;
        public Builder() {}
        public Builder(GetInterfaceEndpointResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.endpointService = defaults.endpointService;
    	      this.etag = defaults.etag;
    	      this.fqdn = defaults.fqdn;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.networkInterfaces = defaults.networkInterfaces;
    	      this.owner = defaults.owner;
    	      this.provisioningState = defaults.provisioningState;
    	      this.subnet = defaults.subnet;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder endpointService(@Nullable EndpointServiceResponse endpointService) {

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

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

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

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

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetInterfaceEndpointResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder networkInterfaces(List networkInterfaces) {
            if (networkInterfaces == null) {
              throw new MissingRequiredPropertyException("GetInterfaceEndpointResult", "networkInterfaces");
            }
            this.networkInterfaces = networkInterfaces;
            return this;
        }
        public Builder networkInterfaces(NetworkInterfaceResponse... networkInterfaces) {
            return networkInterfaces(List.of(networkInterfaces));
        }
        @CustomType.Setter
        public Builder owner(String owner) {
            if (owner == null) {
              throw new MissingRequiredPropertyException("GetInterfaceEndpointResult", "owner");
            }
            this.owner = owner;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetInterfaceEndpointResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder subnet(@Nullable SubnetResponse subnet) {

            this.subnet = subnet;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetInterfaceEndpointResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetInterfaceEndpointResult build() {
            final var _resultValue = new GetInterfaceEndpointResult();
            _resultValue.endpointService = endpointService;
            _resultValue.etag = etag;
            _resultValue.fqdn = fqdn;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.networkInterfaces = networkInterfaces;
            _resultValue.owner = owner;
            _resultValue.provisioningState = provisioningState;
            _resultValue.subnet = subnet;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy