
com.pulumi.azurenative.offazure.outputs.PrivateEndpointConnectionPropertiesResponse 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.offazure.outputs;
import com.pulumi.azurenative.offazure.outputs.PrivateLinkServiceConnectionStateResponse;
import com.pulumi.azurenative.offazure.outputs.ResourceIdResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PrivateEndpointConnectionPropertiesResponse {
private ResourceIdResponse privateEndpoint;
private @Nullable PrivateLinkServiceConnectionStateResponse privateLinkServiceConnectionState;
private String provisioningState;
private PrivateEndpointConnectionPropertiesResponse() {}
public ResourceIdResponse privateEndpoint() {
return this.privateEndpoint;
}
public Optional privateLinkServiceConnectionState() {
return Optional.ofNullable(this.privateLinkServiceConnectionState);
}
public String provisioningState() {
return this.provisioningState;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PrivateEndpointConnectionPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private ResourceIdResponse privateEndpoint;
private @Nullable PrivateLinkServiceConnectionStateResponse privateLinkServiceConnectionState;
private String provisioningState;
public Builder() {}
public Builder(PrivateEndpointConnectionPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.privateEndpoint = defaults.privateEndpoint;
this.privateLinkServiceConnectionState = defaults.privateLinkServiceConnectionState;
this.provisioningState = defaults.provisioningState;
}
@CustomType.Setter
public Builder privateEndpoint(ResourceIdResponse privateEndpoint) {
if (privateEndpoint == null) {
throw new MissingRequiredPropertyException("PrivateEndpointConnectionPropertiesResponse", "privateEndpoint");
}
this.privateEndpoint = privateEndpoint;
return this;
}
@CustomType.Setter
public Builder privateLinkServiceConnectionState(@Nullable PrivateLinkServiceConnectionStateResponse privateLinkServiceConnectionState) {
this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("PrivateEndpointConnectionPropertiesResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
public PrivateEndpointConnectionPropertiesResponse build() {
final var _resultValue = new PrivateEndpointConnectionPropertiesResponse();
_resultValue.privateEndpoint = privateEndpoint;
_resultValue.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
_resultValue.provisioningState = provisioningState;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy