com.pulumi.azurenative.webpubsub.outputs.PrivateEndpointACLResponse 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.webpubsub.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class PrivateEndpointACLResponse {
/**
* @return Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
*
*/
private @Nullable List allow;
/**
* @return Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
*
*/
private @Nullable List deny;
/**
* @return Name of the private endpoint connection
*
*/
private String name;
private PrivateEndpointACLResponse() {}
/**
* @return Allowed request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
*
*/
public List allow() {
return this.allow == null ? List.of() : this.allow;
}
/**
* @return Denied request types. The value can be one or more of: ClientConnection, ServerConnection, RESTAPI.
*
*/
public List deny() {
return this.deny == null ? List.of() : this.deny;
}
/**
* @return Name of the private endpoint connection
*
*/
public String name() {
return this.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PrivateEndpointACLResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List allow;
private @Nullable List deny;
private String name;
public Builder() {}
public Builder(PrivateEndpointACLResponse defaults) {
Objects.requireNonNull(defaults);
this.allow = defaults.allow;
this.deny = defaults.deny;
this.name = defaults.name;
}
@CustomType.Setter
public Builder allow(@Nullable List allow) {
this.allow = allow;
return this;
}
public Builder allow(String... allow) {
return allow(List.of(allow));
}
@CustomType.Setter
public Builder deny(@Nullable List deny) {
this.deny = deny;
return this;
}
public Builder deny(String... deny) {
return deny(List.of(deny));
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("PrivateEndpointACLResponse", "name");
}
this.name = name;
return this;
}
public PrivateEndpointACLResponse build() {
final var _resultValue = new PrivateEndpointACLResponse();
_resultValue.allow = allow;
_resultValue.deny = deny;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy