All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.ec2.outputs.NetworkInsightsAnalysisForwardPathComponentAclRule Maven / Gradle / Ivy

Go to download

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.NetworkInsightsAnalysisForwardPathComponentAclRulePortRange;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class NetworkInsightsAnalysisForwardPathComponentAclRule {
    private @Nullable String cidr;
    private @Nullable Boolean egress;
    private @Nullable List portRanges;
    private @Nullable String protocol;
    private @Nullable String ruleAction;
    private @Nullable Integer ruleNumber;

    private NetworkInsightsAnalysisForwardPathComponentAclRule() {}
    public Optional cidr() {
        return Optional.ofNullable(this.cidr);
    }
    public Optional egress() {
        return Optional.ofNullable(this.egress);
    }
    public List portRanges() {
        return this.portRanges == null ? List.of() : this.portRanges;
    }
    public Optional protocol() {
        return Optional.ofNullable(this.protocol);
    }
    public Optional ruleAction() {
        return Optional.ofNullable(this.ruleAction);
    }
    public Optional ruleNumber() {
        return Optional.ofNullable(this.ruleNumber);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(NetworkInsightsAnalysisForwardPathComponentAclRule defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String cidr;
        private @Nullable Boolean egress;
        private @Nullable List portRanges;
        private @Nullable String protocol;
        private @Nullable String ruleAction;
        private @Nullable Integer ruleNumber;
        public Builder() {}
        public Builder(NetworkInsightsAnalysisForwardPathComponentAclRule 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(@Nullable String cidr) {

            this.cidr = cidr;
            return this;
        }
        @CustomType.Setter
        public Builder egress(@Nullable Boolean egress) {

            this.egress = egress;
            return this;
        }
        @CustomType.Setter
        public Builder portRanges(@Nullable List portRanges) {

            this.portRanges = portRanges;
            return this;
        }
        public Builder portRanges(NetworkInsightsAnalysisForwardPathComponentAclRulePortRange... portRanges) {
            return portRanges(List.of(portRanges));
        }
        @CustomType.Setter
        public Builder protocol(@Nullable String protocol) {

            this.protocol = protocol;
            return this;
        }
        @CustomType.Setter
        public Builder ruleAction(@Nullable String ruleAction) {

            this.ruleAction = ruleAction;
            return this;
        }
        @CustomType.Setter
        public Builder ruleNumber(@Nullable Integer ruleNumber) {

            this.ruleNumber = ruleNumber;
            return this;
        }
        public NetworkInsightsAnalysisForwardPathComponentAclRule build() {
            final var _resultValue = new NetworkInsightsAnalysisForwardPathComponentAclRule();
            _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