com.pulumi.azurenative.streamanalytics.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.streamanalytics.outputs;
import com.pulumi.azurenative.streamanalytics.outputs.PrivateLinkConnectionStateResponse;
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 The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to. Required on PUT (CreateOrUpdate) requests.
*
*/
private @Nullable List groupIds;
/**
* @return A collection of read-only information about the state of the connection to the private remote resource.
*
*/
private @Nullable PrivateLinkConnectionStateResponse privateLinkServiceConnectionState;
/**
* @return The resource id of the private link service. Required on PUT (CreateOrUpdate) requests.
*
*/
private @Nullable String privateLinkServiceId;
/**
* @return A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars.
*
*/
private String requestMessage;
private PrivateLinkServiceConnectionResponse() {}
/**
* @return The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to. Required on PUT (CreateOrUpdate) requests.
*
*/
public List groupIds() {
return this.groupIds == null ? List.of() : this.groupIds;
}
/**
* @return A collection of read-only information about the state of the connection to the private remote resource.
*
*/
public Optional privateLinkServiceConnectionState() {
return Optional.ofNullable(this.privateLinkServiceConnectionState);
}
/**
* @return The resource id of the private link service. Required on PUT (CreateOrUpdate) requests.
*
*/
public Optional privateLinkServiceId() {
return Optional.ofNullable(this.privateLinkServiceId);
}
/**
* @return A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars.
*
*/
public String requestMessage() {
return this.requestMessage;
}
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 @Nullable List groupIds;
private @Nullable PrivateLinkConnectionStateResponse privateLinkServiceConnectionState;
private @Nullable String privateLinkServiceId;
private String requestMessage;
public Builder() {}
public Builder(PrivateLinkServiceConnectionResponse defaults) {
Objects.requireNonNull(defaults);
this.groupIds = defaults.groupIds;
this.privateLinkServiceConnectionState = defaults.privateLinkServiceConnectionState;
this.privateLinkServiceId = defaults.privateLinkServiceId;
this.requestMessage = defaults.requestMessage;
}
@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 privateLinkServiceConnectionState(@Nullable PrivateLinkConnectionStateResponse privateLinkServiceConnectionState) {
this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
return this;
}
@CustomType.Setter
public Builder privateLinkServiceId(@Nullable String privateLinkServiceId) {
this.privateLinkServiceId = privateLinkServiceId;
return this;
}
@CustomType.Setter
public Builder requestMessage(String requestMessage) {
if (requestMessage == null) {
throw new MissingRequiredPropertyException("PrivateLinkServiceConnectionResponse", "requestMessage");
}
this.requestMessage = requestMessage;
return this;
}
public PrivateLinkServiceConnectionResponse build() {
final var _resultValue = new PrivateLinkServiceConnectionResponse();
_resultValue.groupIds = groupIds;
_resultValue.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
_resultValue.privateLinkServiceId = privateLinkServiceId;
_resultValue.requestMessage = requestMessage;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy