
com.pulumi.azurenative.batch.outputs.EndpointAccessProfileResponse 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.batch.outputs;
import com.pulumi.azurenative.batch.outputs.IPRuleResponse;
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 EndpointAccessProfileResponse {
/**
* @return Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled.
*
*/
private String defaultAction;
/**
* @return Array of IP ranges to filter client IP address.
*
*/
private @Nullable List ipRules;
private EndpointAccessProfileResponse() {}
/**
* @return Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled.
*
*/
public String defaultAction() {
return this.defaultAction;
}
/**
* @return Array of IP ranges to filter client IP address.
*
*/
public List ipRules() {
return this.ipRules == null ? List.of() : this.ipRules;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EndpointAccessProfileResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String defaultAction;
private @Nullable List ipRules;
public Builder() {}
public Builder(EndpointAccessProfileResponse defaults) {
Objects.requireNonNull(defaults);
this.defaultAction = defaults.defaultAction;
this.ipRules = defaults.ipRules;
}
@CustomType.Setter
public Builder defaultAction(String defaultAction) {
if (defaultAction == null) {
throw new MissingRequiredPropertyException("EndpointAccessProfileResponse", "defaultAction");
}
this.defaultAction = defaultAction;
return this;
}
@CustomType.Setter
public Builder ipRules(@Nullable List ipRules) {
this.ipRules = ipRules;
return this;
}
public Builder ipRules(IPRuleResponse... ipRules) {
return ipRules(List.of(ipRules));
}
public EndpointAccessProfileResponse build() {
final var _resultValue = new EndpointAccessProfileResponse();
_resultValue.defaultAction = defaultAction;
_resultValue.ipRules = ipRules;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy