com.pulumi.azurenative.signalrservice.outputs.NetworkACLResponse 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.signalrservice.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class NetworkACLResponse {
/**
* @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;
private NetworkACLResponse() {}
/**
* @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;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworkACLResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List allow;
private @Nullable List deny;
public Builder() {}
public Builder(NetworkACLResponse defaults) {
Objects.requireNonNull(defaults);
this.allow = defaults.allow;
this.deny = defaults.deny;
}
@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));
}
public NetworkACLResponse build() {
final var _resultValue = new NetworkACLResponse();
_resultValue.allow = allow;
_resultValue.deny = deny;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy