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

com.pulumi.azurenative.migrate.outputs.PrivateEndpointConnectionResponse 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.migrate.outputs;

import com.pulumi.azurenative.migrate.outputs.PrivateEndpointConnectionPropertiesResponse;
import com.pulumi.azurenative.migrate.outputs.PrivateEndpointResponse;
import com.pulumi.azurenative.migrate.outputs.PrivateLinkServiceConnectionStateResponse;
import com.pulumi.azurenative.migrate.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PrivateEndpointConnectionResponse {
    /**
     * @return For optimistic concurrency control.
     * 
     */
    private @Nullable String eTag;
    /**
     * @return The group ids for the private endpoint resource.
     * 
     */
    private @Nullable List groupIds;
    /**
     * @return Path reference to this private endpoint endpoint connection. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/privateEndpointConnections/{privateEndpointConnectionName}
     * 
     */
    private String id;
    /**
     * @return Name of the private endpoint endpoint connection.
     * 
     */
    private String name;
    /**
     * @return The private endpoint resource.
     * 
     */
    private @Nullable PrivateEndpointResponse privateEndpoint;
    /**
     * @return A collection of information about the state of the connection between service consumer and provider.
     * 
     */
    private @Nullable PrivateLinkServiceConnectionStateResponse privateLinkServiceConnectionState;
    /**
     * @return Properties of the private endpoint endpoint connection.
     * 
     */
    private PrivateEndpointConnectionPropertiesResponse properties;
    /**
     * @return The provisioning state of the private endpoint connection resource.
     * 
     */
    private @Nullable String provisioningState;
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    private @Nullable SystemDataResponse systemData;
    /**
     * @return Type of the object = [Microsoft.Migrate/assessmentProjects/privateEndpointConnections].
     * 
     */
    private String type;

    private PrivateEndpointConnectionResponse() {}
    /**
     * @return For optimistic concurrency control.
     * 
     */
    public Optional eTag() {
        return Optional.ofNullable(this.eTag);
    }
    /**
     * @return The group ids for the private endpoint resource.
     * 
     */
    public List groupIds() {
        return this.groupIds == null ? List.of() : this.groupIds;
    }
    /**
     * @return Path reference to this private endpoint endpoint connection. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/privateEndpointConnections/{privateEndpointConnectionName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Name of the private endpoint endpoint connection.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The private endpoint resource.
     * 
     */
    public Optional privateEndpoint() {
        return Optional.ofNullable(this.privateEndpoint);
    }
    /**
     * @return A collection of information about the state of the connection between service consumer and provider.
     * 
     */
    public Optional privateLinkServiceConnectionState() {
        return Optional.ofNullable(this.privateLinkServiceConnectionState);
    }
    /**
     * @return Properties of the private endpoint endpoint connection.
     * 
     */
    public PrivateEndpointConnectionPropertiesResponse properties() {
        return this.properties;
    }
    /**
     * @return The provisioning state of the private endpoint connection resource.
     * 
     */
    public Optional provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    public Optional systemData() {
        return Optional.ofNullable(this.systemData);
    }
    /**
     * @return Type of the object = [Microsoft.Migrate/assessmentProjects/privateEndpointConnections].
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(PrivateEndpointConnectionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String eTag;
        private @Nullable List groupIds;
        private String id;
        private String name;
        private @Nullable PrivateEndpointResponse privateEndpoint;
        private @Nullable PrivateLinkServiceConnectionStateResponse privateLinkServiceConnectionState;
        private PrivateEndpointConnectionPropertiesResponse properties;
        private @Nullable String provisioningState;
        private @Nullable SystemDataResponse systemData;
        private String type;
        public Builder() {}
        public Builder(PrivateEndpointConnectionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.eTag = defaults.eTag;
    	      this.groupIds = defaults.groupIds;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.privateEndpoint = defaults.privateEndpoint;
    	      this.privateLinkServiceConnectionState = defaults.privateLinkServiceConnectionState;
    	      this.properties = defaults.properties;
    	      this.provisioningState = defaults.provisioningState;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
        }

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

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

            this.groupIds = groupIds;
            return this;
        }
        public Builder groupIds(String... groupIds) {
            return groupIds(List.of(groupIds));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("PrivateEndpointConnectionResponse", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("PrivateEndpointConnectionResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder privateEndpoint(@Nullable PrivateEndpointResponse privateEndpoint) {

            this.privateEndpoint = privateEndpoint;
            return this;
        }
        @CustomType.Setter
        public Builder privateLinkServiceConnectionState(@Nullable PrivateLinkServiceConnectionStateResponse privateLinkServiceConnectionState) {

            this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
            return this;
        }
        @CustomType.Setter
        public Builder properties(PrivateEndpointConnectionPropertiesResponse properties) {
            if (properties == null) {
              throw new MissingRequiredPropertyException("PrivateEndpointConnectionResponse", "properties");
            }
            this.properties = properties;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(@Nullable String provisioningState) {

            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(@Nullable SystemDataResponse systemData) {

            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("PrivateEndpointConnectionResponse", "type");
            }
            this.type = type;
            return this;
        }
        public PrivateEndpointConnectionResponse build() {
            final var _resultValue = new PrivateEndpointConnectionResponse();
            _resultValue.eTag = eTag;
            _resultValue.groupIds = groupIds;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.privateEndpoint = privateEndpoint;
            _resultValue.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
            _resultValue.properties = properties;
            _resultValue.provisioningState = provisioningState;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy