com.pulumi.azurenative.digitaltwins.outputs.ConnectionPropertiesResponse 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.digitaltwins.outputs;
import com.pulumi.azurenative.digitaltwins.outputs.ConnectionPropertiesResponsePrivateLinkServiceConnectionState;
import com.pulumi.azurenative.digitaltwins.outputs.PrivateEndpointResponse;
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 ConnectionPropertiesResponse {
/**
* @return The list of group ids for the private endpoint connection.
*
*/
private @Nullable List groupIds;
/**
* @return The private endpoint.
*
*/
private @Nullable PrivateEndpointResponse privateEndpoint;
/**
* @return The connection state.
*
*/
private @Nullable ConnectionPropertiesResponsePrivateLinkServiceConnectionState privateLinkServiceConnectionState;
/**
* @return The provisioning state.
*
*/
private String provisioningState;
private ConnectionPropertiesResponse() {}
/**
* @return The list of group ids for the private endpoint connection.
*
*/
public List groupIds() {
return this.groupIds == null ? List.of() : this.groupIds;
}
/**
* @return The private endpoint.
*
*/
public Optional privateEndpoint() {
return Optional.ofNullable(this.privateEndpoint);
}
/**
* @return The connection state.
*
*/
public Optional privateLinkServiceConnectionState() {
return Optional.ofNullable(this.privateLinkServiceConnectionState);
}
/**
* @return The provisioning state.
*
*/
public String provisioningState() {
return this.provisioningState;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConnectionPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List groupIds;
private @Nullable PrivateEndpointResponse privateEndpoint;
private @Nullable ConnectionPropertiesResponsePrivateLinkServiceConnectionState privateLinkServiceConnectionState;
private String provisioningState;
public Builder() {}
public Builder(ConnectionPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.groupIds = defaults.groupIds;
this.privateEndpoint = defaults.privateEndpoint;
this.privateLinkServiceConnectionState = defaults.privateLinkServiceConnectionState;
this.provisioningState = defaults.provisioningState;
}
@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 privateEndpoint(@Nullable PrivateEndpointResponse privateEndpoint) {
this.privateEndpoint = privateEndpoint;
return this;
}
@CustomType.Setter
public Builder privateLinkServiceConnectionState(@Nullable ConnectionPropertiesResponsePrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("ConnectionPropertiesResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
public ConnectionPropertiesResponse build() {
final var _resultValue = new ConnectionPropertiesResponse();
_resultValue.groupIds = groupIds;
_resultValue.privateEndpoint = privateEndpoint;
_resultValue.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
_resultValue.provisioningState = provisioningState;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy