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

com.pulumi.aws.ec2.inputs.NetworkInsightsAnalysisForwardPathComponentSecurityGroupRuleArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show 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.inputs;

import com.pulumi.aws.ec2.inputs.NetworkInsightsAnalysisForwardPathComponentSecurityGroupRulePortRangeArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class NetworkInsightsAnalysisForwardPathComponentSecurityGroupRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final NetworkInsightsAnalysisForwardPathComponentSecurityGroupRuleArgs Empty = new NetworkInsightsAnalysisForwardPathComponentSecurityGroupRuleArgs();

    @Import(name="cidr")
    private @Nullable Output cidr;

    public Optional> cidr() {
        return Optional.ofNullable(this.cidr);
    }

    @Import(name="direction")
    private @Nullable Output direction;

    public Optional> direction() {
        return Optional.ofNullable(this.direction);
    }

    @Import(name="portRanges")
    private @Nullable Output> portRanges;

    public Optional>> portRanges() {
        return Optional.ofNullable(this.portRanges);
    }

    @Import(name="prefixListId")
    private @Nullable Output prefixListId;

    public Optional> prefixListId() {
        return Optional.ofNullable(this.prefixListId);
    }

    @Import(name="protocol")
    private @Nullable Output protocol;

    public Optional> protocol() {
        return Optional.ofNullable(this.protocol);
    }

    @Import(name="securityGroupId")
    private @Nullable Output securityGroupId;

    public Optional> securityGroupId() {
        return Optional.ofNullable(this.securityGroupId);
    }

    private NetworkInsightsAnalysisForwardPathComponentSecurityGroupRuleArgs() {}

    private NetworkInsightsAnalysisForwardPathComponentSecurityGroupRuleArgs(NetworkInsightsAnalysisForwardPathComponentSecurityGroupRuleArgs $) {
        this.cidr = $.cidr;
        this.direction = $.direction;
        this.portRanges = $.portRanges;
        this.prefixListId = $.prefixListId;
        this.protocol = $.protocol;
        this.securityGroupId = $.securityGroupId;
    }

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

    public static final class Builder {
        private NetworkInsightsAnalysisForwardPathComponentSecurityGroupRuleArgs $;

        public Builder() {
            $ = new NetworkInsightsAnalysisForwardPathComponentSecurityGroupRuleArgs();
        }

        public Builder(NetworkInsightsAnalysisForwardPathComponentSecurityGroupRuleArgs defaults) {
            $ = new NetworkInsightsAnalysisForwardPathComponentSecurityGroupRuleArgs(Objects.requireNonNull(defaults));
        }

        public Builder cidr(@Nullable Output cidr) {
            $.cidr = cidr;
            return this;
        }

        public Builder cidr(String cidr) {
            return cidr(Output.of(cidr));
        }

        public Builder direction(@Nullable Output direction) {
            $.direction = direction;
            return this;
        }

        public Builder direction(String direction) {
            return direction(Output.of(direction));
        }

        public Builder portRanges(@Nullable Output> portRanges) {
            $.portRanges = portRanges;
            return this;
        }

        public Builder portRanges(List portRanges) {
            return portRanges(Output.of(portRanges));
        }

        public Builder portRanges(NetworkInsightsAnalysisForwardPathComponentSecurityGroupRulePortRangeArgs... portRanges) {
            return portRanges(List.of(portRanges));
        }

        public Builder prefixListId(@Nullable Output prefixListId) {
            $.prefixListId = prefixListId;
            return this;
        }

        public Builder prefixListId(String prefixListId) {
            return prefixListId(Output.of(prefixListId));
        }

        public Builder protocol(@Nullable Output protocol) {
            $.protocol = protocol;
            return this;
        }

        public Builder protocol(String protocol) {
            return protocol(Output.of(protocol));
        }

        public Builder securityGroupId(@Nullable Output securityGroupId) {
            $.securityGroupId = securityGroupId;
            return this;
        }

        public Builder securityGroupId(String securityGroupId) {
            return securityGroupId(Output.of(securityGroupId));
        }

        public NetworkInsightsAnalysisForwardPathComponentSecurityGroupRuleArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy