com.pulumi.aws.ec2.outputs.GetNetworkInsightsAnalysisExplanationAclRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** 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.aws.ec2.outputs;
import com.pulumi.aws.ec2.outputs.GetNetworkInsightsAnalysisExplanationAclRulePortRange;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetNetworkInsightsAnalysisExplanationAclRule {
private String cidr;
private Boolean egress;
private List portRanges;
private String protocol;
private String ruleAction;
private Integer ruleNumber;
private GetNetworkInsightsAnalysisExplanationAclRule() {}
public String cidr() {
return this.cidr;
}
public Boolean egress() {
return this.egress;
}
public List portRanges() {
return this.portRanges;
}
public String protocol() {
return this.protocol;
}
public String ruleAction() {
return this.ruleAction;
}
public Integer ruleNumber() {
return this.ruleNumber;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetNetworkInsightsAnalysisExplanationAclRule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String cidr;
private Boolean egress;
private List portRanges;
private String protocol;
private String ruleAction;
private Integer ruleNumber;
public Builder() {}
public Builder(GetNetworkInsightsAnalysisExplanationAclRule defaults) {
Objects.requireNonNull(defaults);
this.cidr = defaults.cidr;
this.egress = defaults.egress;
this.portRanges = defaults.portRanges;
this.protocol = defaults.protocol;
this.ruleAction = defaults.ruleAction;
this.ruleNumber = defaults.ruleNumber;
}
@CustomType.Setter
public Builder cidr(String cidr) {
if (cidr == null) {
throw new MissingRequiredPropertyException("GetNetworkInsightsAnalysisExplanationAclRule", "cidr");
}
this.cidr = cidr;
return this;
}
@CustomType.Setter
public Builder egress(Boolean egress) {
if (egress == null) {
throw new MissingRequiredPropertyException("GetNetworkInsightsAnalysisExplanationAclRule", "egress");
}
this.egress = egress;
return this;
}
@CustomType.Setter
public Builder portRanges(List portRanges) {
if (portRanges == null) {
throw new MissingRequiredPropertyException("GetNetworkInsightsAnalysisExplanationAclRule", "portRanges");
}
this.portRanges = portRanges;
return this;
}
public Builder portRanges(GetNetworkInsightsAnalysisExplanationAclRulePortRange... portRanges) {
return portRanges(List.of(portRanges));
}
@CustomType.Setter
public Builder protocol(String protocol) {
if (protocol == null) {
throw new MissingRequiredPropertyException("GetNetworkInsightsAnalysisExplanationAclRule", "protocol");
}
this.protocol = protocol;
return this;
}
@CustomType.Setter
public Builder ruleAction(String ruleAction) {
if (ruleAction == null) {
throw new MissingRequiredPropertyException("GetNetworkInsightsAnalysisExplanationAclRule", "ruleAction");
}
this.ruleAction = ruleAction;
return this;
}
@CustomType.Setter
public Builder ruleNumber(Integer ruleNumber) {
if (ruleNumber == null) {
throw new MissingRequiredPropertyException("GetNetworkInsightsAnalysisExplanationAclRule", "ruleNumber");
}
this.ruleNumber = ruleNumber;
return this;
}
public GetNetworkInsightsAnalysisExplanationAclRule build() {
final var _resultValue = new GetNetworkInsightsAnalysisExplanationAclRule();
_resultValue.cidr = cidr;
_resultValue.egress = egress;
_resultValue.portRanges = portRanges;
_resultValue.protocol = protocol;
_resultValue.ruleAction = ruleAction;
_resultValue.ruleNumber = ruleNumber;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy