com.pulumi.azurenative.eventgrid.outputs.InboundIpRuleResponse 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.eventgrid.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class InboundIpRuleResponse {
/**
* @return Action to perform based on the match or no match of the IpMask.
*
*/
private @Nullable String action;
/**
* @return IP Address in CIDR notation e.g., 10.0.0.0/8.
*
*/
private @Nullable String ipMask;
private InboundIpRuleResponse() {}
/**
* @return Action to perform based on the match or no match of the IpMask.
*
*/
public Optional action() {
return Optional.ofNullable(this.action);
}
/**
* @return IP Address in CIDR notation e.g., 10.0.0.0/8.
*
*/
public Optional ipMask() {
return Optional.ofNullable(this.ipMask);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(InboundIpRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String action;
private @Nullable String ipMask;
public Builder() {}
public Builder(InboundIpRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.ipMask = defaults.ipMask;
}
@CustomType.Setter
public Builder action(@Nullable String action) {
this.action = action;
return this;
}
@CustomType.Setter
public Builder ipMask(@Nullable String ipMask) {
this.ipMask = ipMask;
return this;
}
public InboundIpRuleResponse build() {
final var _resultValue = new InboundIpRuleResponse();
_resultValue.action = action;
_resultValue.ipMask = ipMask;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy