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

com.pulumi.aws.networkmonitor.inputs.ProbeState 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.72.0
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.networkmonitor.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ProbeState Empty = new ProbeState();

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

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

    /**
     * The ARN of the attachment.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return The ARN of the attachment.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * The destination IP address. This must be either IPV4 or IPV6.
     * 
     */
    @Import(name="destination")
    private @Nullable Output destination;

    /**
     * @return The destination IP address. This must be either IPV4 or IPV6.
     * 
     */
    public Optional> destination() {
        return Optional.ofNullable(this.destination);
    }

    /**
     * The port associated with the destination. This is required only if the protocol is TCP and must be a number between 1 and 65536.
     * 
     */
    @Import(name="destinationPort")
    private @Nullable Output destinationPort;

    /**
     * @return The port associated with the destination. This is required only if the protocol is TCP and must be a number between 1 and 65536.
     * 
     */
    public Optional> destinationPort() {
        return Optional.ofNullable(this.destinationPort);
    }

    /**
     * The name of the monitor.
     * 
     */
    @Import(name="monitorName")
    private @Nullable Output monitorName;

    /**
     * @return The name of the monitor.
     * 
     */
    public Optional> monitorName() {
        return Optional.ofNullable(this.monitorName);
    }

    /**
     * The size of the packets sent between the source and destination. This must be a number between 56 and 8500.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="packetSize")
    private @Nullable Output packetSize;

    /**
     * @return The size of the packets sent between the source and destination. This must be a number between 56 and 8500.
     * 
     * The following arguments are optional:
     * 
     */
    public Optional> packetSize() {
        return Optional.ofNullable(this.packetSize);
    }

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

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

    /**
     * The protocol used for the network traffic between the source and destination. This must be either TCP or ICMP.
     * 
     */
    @Import(name="protocol")
    private @Nullable Output protocol;

    /**
     * @return The protocol used for the network traffic between the source and destination. This must be either TCP or ICMP.
     * 
     */
    public Optional> protocol() {
        return Optional.ofNullable(this.protocol);
    }

    /**
     * The ARN of the subnet.
     * 
     */
    @Import(name="sourceArn")
    private @Nullable Output sourceArn;

    /**
     * @return The ARN of the subnet.
     * 
     */
    public Optional> sourceArn() {
        return Optional.ofNullable(this.sourceArn);
    }

    /**
     * Key-value tags for the monitor. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Key-value tags for the monitor. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    @Import(name="tagsAll")
    private @Nullable Output> tagsAll;

    /**
     * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    public Optional>> tagsAll() {
        return Optional.ofNullable(this.tagsAll);
    }

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

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

    private ProbeState() {}

    private ProbeState(ProbeState $) {
        this.addressFamily = $.addressFamily;
        this.arn = $.arn;
        this.destination = $.destination;
        this.destinationPort = $.destinationPort;
        this.monitorName = $.monitorName;
        this.packetSize = $.packetSize;
        this.probeId = $.probeId;
        this.protocol = $.protocol;
        this.sourceArn = $.sourceArn;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
        this.vpcId = $.vpcId;
    }

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

    public static final class Builder {
        private ProbeState $;

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

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

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

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

        /**
         * @param arn The ARN of the attachment.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn The ARN of the attachment.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param destination The destination IP address. This must be either IPV4 or IPV6.
         * 
         * @return builder
         * 
         */
        public Builder destination(@Nullable Output destination) {
            $.destination = destination;
            return this;
        }

        /**
         * @param destination The destination IP address. This must be either IPV4 or IPV6.
         * 
         * @return builder
         * 
         */
        public Builder destination(String destination) {
            return destination(Output.of(destination));
        }

        /**
         * @param destinationPort The port associated with the destination. This is required only if the protocol is TCP and must be a number between 1 and 65536.
         * 
         * @return builder
         * 
         */
        public Builder destinationPort(@Nullable Output destinationPort) {
            $.destinationPort = destinationPort;
            return this;
        }

        /**
         * @param destinationPort The port associated with the destination. This is required only if the protocol is TCP and must be a number between 1 and 65536.
         * 
         * @return builder
         * 
         */
        public Builder destinationPort(Integer destinationPort) {
            return destinationPort(Output.of(destinationPort));
        }

        /**
         * @param monitorName The name of the monitor.
         * 
         * @return builder
         * 
         */
        public Builder monitorName(@Nullable Output monitorName) {
            $.monitorName = monitorName;
            return this;
        }

        /**
         * @param monitorName The name of the monitor.
         * 
         * @return builder
         * 
         */
        public Builder monitorName(String monitorName) {
            return monitorName(Output.of(monitorName));
        }

        /**
         * @param packetSize The size of the packets sent between the source and destination. This must be a number between 56 and 8500.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder packetSize(@Nullable Output packetSize) {
            $.packetSize = packetSize;
            return this;
        }

        /**
         * @param packetSize The size of the packets sent between the source and destination. This must be a number between 56 and 8500.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder packetSize(Integer packetSize) {
            return packetSize(Output.of(packetSize));
        }

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

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

        /**
         * @param protocol The protocol used for the network traffic between the source and destination. This must be either TCP or ICMP.
         * 
         * @return builder
         * 
         */
        public Builder protocol(@Nullable Output protocol) {
            $.protocol = protocol;
            return this;
        }

        /**
         * @param protocol The protocol used for the network traffic between the source and destination. This must be either TCP or ICMP.
         * 
         * @return builder
         * 
         */
        public Builder protocol(String protocol) {
            return protocol(Output.of(protocol));
        }

        /**
         * @param sourceArn The ARN of the subnet.
         * 
         * @return builder
         * 
         */
        public Builder sourceArn(@Nullable Output sourceArn) {
            $.sourceArn = sourceArn;
            return this;
        }

        /**
         * @param sourceArn The ARN of the subnet.
         * 
         * @return builder
         * 
         */
        public Builder sourceArn(String sourceArn) {
            return sourceArn(Output.of(sourceArn));
        }

        /**
         * @param tags Key-value tags for the monitor. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Key-value tags for the monitor. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(@Nullable Output> tagsAll) {
            $.tagsAll = tagsAll;
            return this;
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(Map tagsAll) {
            return tagsAll(Output.of(tagsAll));
        }

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

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

        public ProbeState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy