
com.pulumi.azurenative.servicelinker.outputs.FirewallRulesResponse Maven / Gradle / Ivy
// *** 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.servicelinker.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class FirewallRulesResponse {
/**
* @return Allow Azure services to access the target service if true.
*
*/
private @Nullable String azureServices;
/**
* @return Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.
*
*/
private @Nullable String callerClientIP;
/**
* @return This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.
*
*/
private @Nullable List ipRanges;
private FirewallRulesResponse() {}
/**
* @return Allow Azure services to access the target service if true.
*
*/
public Optional azureServices() {
return Optional.ofNullable(this.azureServices);
}
/**
* @return Allow caller client IP to access the target service if true. the property is used when connecting local application to target service.
*
*/
public Optional callerClientIP() {
return Optional.ofNullable(this.callerClientIP);
}
/**
* @return This value specifies the set of IP addresses or IP address ranges in CIDR form to be included as the allowed list of client IPs for a given database account.
*
*/
public List ipRanges() {
return this.ipRanges == null ? List.of() : this.ipRanges;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FirewallRulesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String azureServices;
private @Nullable String callerClientIP;
private @Nullable List ipRanges;
public Builder() {}
public Builder(FirewallRulesResponse defaults) {
Objects.requireNonNull(defaults);
this.azureServices = defaults.azureServices;
this.callerClientIP = defaults.callerClientIP;
this.ipRanges = defaults.ipRanges;
}
@CustomType.Setter
public Builder azureServices(@Nullable String azureServices) {
this.azureServices = azureServices;
return this;
}
@CustomType.Setter
public Builder callerClientIP(@Nullable String callerClientIP) {
this.callerClientIP = callerClientIP;
return this;
}
@CustomType.Setter
public Builder ipRanges(@Nullable List ipRanges) {
this.ipRanges = ipRanges;
return this;
}
public Builder ipRanges(String... ipRanges) {
return ipRanges(List.of(ipRanges));
}
public FirewallRulesResponse build() {
final var _resultValue = new FirewallRulesResponse();
_resultValue.azureServices = azureServices;
_resultValue.callerClientIP = callerClientIP;
_resultValue.ipRanges = ipRanges;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy