
com.pulumi.azurenative.dbformariadb.outputs.ServerPrivateEndpointConnectionPropertiesResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.dbformariadb.outputs;
import com.pulumi.azurenative.dbformariadb.outputs.PrivateEndpointPropertyResponse;
import com.pulumi.azurenative.dbformariadb.outputs.ServerPrivateLinkServiceConnectionStatePropertyResponse;
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 ServerPrivateEndpointConnectionPropertiesResponse {
/**
* @return Private endpoint which the connection belongs to.
*
*/
private @Nullable PrivateEndpointPropertyResponse privateEndpoint;
/**
* @return Connection state of the private endpoint connection.
*
*/
private @Nullable ServerPrivateLinkServiceConnectionStatePropertyResponse privateLinkServiceConnectionState;
/**
* @return State of the private endpoint connection.
*
*/
private String provisioningState;
private ServerPrivateEndpointConnectionPropertiesResponse() {}
/**
* @return Private endpoint which the connection belongs to.
*
*/
public Optional privateEndpoint() {
return Optional.ofNullable(this.privateEndpoint);
}
/**
* @return Connection state of the private endpoint connection.
*
*/
public Optional privateLinkServiceConnectionState() {
return Optional.ofNullable(this.privateLinkServiceConnectionState);
}
/**
* @return State of the private endpoint connection.
*
*/
public String provisioningState() {
return this.provisioningState;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServerPrivateEndpointConnectionPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable PrivateEndpointPropertyResponse privateEndpoint;
private @Nullable ServerPrivateLinkServiceConnectionStatePropertyResponse privateLinkServiceConnectionState;
private String provisioningState;
public Builder() {}
public Builder(ServerPrivateEndpointConnectionPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.privateEndpoint = defaults.privateEndpoint;
this.privateLinkServiceConnectionState = defaults.privateLinkServiceConnectionState;
this.provisioningState = defaults.provisioningState;
}
@CustomType.Setter
public Builder privateEndpoint(@Nullable PrivateEndpointPropertyResponse privateEndpoint) {
this.privateEndpoint = privateEndpoint;
return this;
}
@CustomType.Setter
public Builder privateLinkServiceConnectionState(@Nullable ServerPrivateLinkServiceConnectionStatePropertyResponse privateLinkServiceConnectionState) {
this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("ServerPrivateEndpointConnectionPropertiesResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
public ServerPrivateEndpointConnectionPropertiesResponse build() {
final var _resultValue = new ServerPrivateEndpointConnectionPropertiesResponse();
_resultValue.privateEndpoint = privateEndpoint;
_resultValue.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
_resultValue.provisioningState = provisioningState;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy