
com.pulumi.azurenative.network.outputs.PrivateLinkServiceConnectionResponse 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.network.outputs;
import com.pulumi.azurenative.network.outputs.PrivateLinkServiceConnectionStateResponse;
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 PrivateLinkServiceConnectionResponse {
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
private String etag;
/**
* @return The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to.
*
*/
private @Nullable List groupIds;
/**
* @return Resource ID.
*
*/
private @Nullable String id;
/**
* @return The name of the resource that is unique within a resource group. This name can be used to access the resource.
*
*/
private @Nullable String name;
/**
* @return A collection of read-only information about the state of the connection to the remote resource.
*
*/
private @Nullable PrivateLinkServiceConnectionStateResponse privateLinkServiceConnectionState;
/**
* @return The resource id of private link service.
*
*/
private @Nullable String privateLinkServiceId;
/**
* @return The provisioning state of the private link service connection resource.
*
*/
private String provisioningState;
/**
* @return A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars.
*
*/
private @Nullable String requestMessage;
/**
* @return The resource type.
*
*/
private String type;
private PrivateLinkServiceConnectionResponse() {}
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
public String etag() {
return this.etag;
}
/**
* @return The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to.
*
*/
public List groupIds() {
return this.groupIds == null ? List.of() : this.groupIds;
}
/**
* @return Resource ID.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return The name of the resource that is unique within a resource group. This name can be used to access the resource.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return A collection of read-only information about the state of the connection to the remote resource.
*
*/
public Optional privateLinkServiceConnectionState() {
return Optional.ofNullable(this.privateLinkServiceConnectionState);
}
/**
* @return The resource id of private link service.
*
*/
public Optional privateLinkServiceId() {
return Optional.ofNullable(this.privateLinkServiceId);
}
/**
* @return The provisioning state of the private link service connection resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars.
*
*/
public Optional requestMessage() {
return Optional.ofNullable(this.requestMessage);
}
/**
* @return The resource type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PrivateLinkServiceConnectionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String etag;
private @Nullable List groupIds;
private @Nullable String id;
private @Nullable String name;
private @Nullable PrivateLinkServiceConnectionStateResponse privateLinkServiceConnectionState;
private @Nullable String privateLinkServiceId;
private String provisioningState;
private @Nullable String requestMessage;
private String type;
public Builder() {}
public Builder(PrivateLinkServiceConnectionResponse defaults) {
Objects.requireNonNull(defaults);
this.etag = defaults.etag;
this.groupIds = defaults.groupIds;
this.id = defaults.id;
this.name = defaults.name;
this.privateLinkServiceConnectionState = defaults.privateLinkServiceConnectionState;
this.privateLinkServiceId = defaults.privateLinkServiceId;
this.provisioningState = defaults.provisioningState;
this.requestMessage = defaults.requestMessage;
this.type = defaults.type;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("PrivateLinkServiceConnectionResponse", "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(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder privateLinkServiceConnectionState(@Nullable PrivateLinkServiceConnectionStateResponse privateLinkServiceConnectionState) {
this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
return this;
}
@CustomType.Setter
public Builder privateLinkServiceId(@Nullable String privateLinkServiceId) {
this.privateLinkServiceId = privateLinkServiceId;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("PrivateLinkServiceConnectionResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder requestMessage(@Nullable String requestMessage) {
this.requestMessage = requestMessage;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("PrivateLinkServiceConnectionResponse", "type");
}
this.type = type;
return this;
}
public PrivateLinkServiceConnectionResponse build() {
final var _resultValue = new PrivateLinkServiceConnectionResponse();
_resultValue.etag = etag;
_resultValue.groupIds = groupIds;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
_resultValue.privateLinkServiceId = privateLinkServiceId;
_resultValue.provisioningState = provisioningState;
_resultValue.requestMessage = requestMessage;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy