com.pulumi.azurenative.storage.outputs.IPRuleResponse 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.storage.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class IPRuleResponse {
/**
* @return The action of IP ACL rule.
*
*/
private @Nullable String action;
/**
* @return Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
*
*/
private String iPAddressOrRange;
private IPRuleResponse() {}
/**
* @return The action of IP ACL rule.
*
*/
public Optional action() {
return Optional.ofNullable(this.action);
}
/**
* @return Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
*
*/
public String iPAddressOrRange() {
return this.iPAddressOrRange;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IPRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String action;
private String iPAddressOrRange;
public Builder() {}
public Builder(IPRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.iPAddressOrRange = defaults.iPAddressOrRange;
}
@CustomType.Setter
public Builder action(@Nullable String action) {
this.action = action;
return this;
}
@CustomType.Setter
public Builder iPAddressOrRange(String iPAddressOrRange) {
if (iPAddressOrRange == null) {
throw new MissingRequiredPropertyException("IPRuleResponse", "iPAddressOrRange");
}
this.iPAddressOrRange = iPAddressOrRange;
return this;
}
public IPRuleResponse build() {
final var _resultValue = new IPRuleResponse();
_resultValue.action = action;
_resultValue.iPAddressOrRange = iPAddressOrRange;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy