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

com.pulumi.azurenative.peering.outputs.GetConnectionMonitorTestResult Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.azurenative.peering.outputs;

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;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetConnectionMonitorTestResult {
    /**
     * @return The Connection Monitor test destination
     * 
     */
    private @Nullable String destination;
    /**
     * @return The Connection Monitor test destination port
     * 
     */
    private @Nullable Integer destinationPort;
    /**
     * @return The ID of the resource.
     * 
     */
    private String id;
    /**
     * @return The flag that indicates if the Connection Monitor test is successful or not.
     * 
     */
    private Boolean isTestSuccessful;
    /**
     * @return The name of the resource.
     * 
     */
    private String name;
    /**
     * @return The path representing the Connection Monitor test.
     * 
     */
    private List path;
    /**
     * @return The provisioning state of the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return The Connection Monitor test source agent
     * 
     */
    private @Nullable String sourceAgent;
    /**
     * @return The Connection Monitor test frequency in seconds
     * 
     */
    private @Nullable Integer testFrequencyInSec;
    /**
     * @return The type of the resource.
     * 
     */
    private String type;

    private GetConnectionMonitorTestResult() {}
    /**
     * @return The Connection Monitor test destination
     * 
     */
    public Optional destination() {
        return Optional.ofNullable(this.destination);
    }
    /**
     * @return The Connection Monitor test destination port
     * 
     */
    public Optional destinationPort() {
        return Optional.ofNullable(this.destinationPort);
    }
    /**
     * @return The ID of the resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The flag that indicates if the Connection Monitor test is successful or not.
     * 
     */
    public Boolean isTestSuccessful() {
        return this.isTestSuccessful;
    }
    /**
     * @return The name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The path representing the Connection Monitor test.
     * 
     */
    public List path() {
        return this.path;
    }
    /**
     * @return The provisioning state of the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The Connection Monitor test source agent
     * 
     */
    public Optional sourceAgent() {
        return Optional.ofNullable(this.sourceAgent);
    }
    /**
     * @return The Connection Monitor test frequency in seconds
     * 
     */
    public Optional testFrequencyInSec() {
        return Optional.ofNullable(this.testFrequencyInSec);
    }
    /**
     * @return The type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetConnectionMonitorTestResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String destination;
        private @Nullable Integer destinationPort;
        private String id;
        private Boolean isTestSuccessful;
        private String name;
        private List path;
        private String provisioningState;
        private @Nullable String sourceAgent;
        private @Nullable Integer testFrequencyInSec;
        private String type;
        public Builder() {}
        public Builder(GetConnectionMonitorTestResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.destination = defaults.destination;
    	      this.destinationPort = defaults.destinationPort;
    	      this.id = defaults.id;
    	      this.isTestSuccessful = defaults.isTestSuccessful;
    	      this.name = defaults.name;
    	      this.path = defaults.path;
    	      this.provisioningState = defaults.provisioningState;
    	      this.sourceAgent = defaults.sourceAgent;
    	      this.testFrequencyInSec = defaults.testFrequencyInSec;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder destination(@Nullable String destination) {

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

            this.destinationPort = destinationPort;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetConnectionMonitorTestResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder isTestSuccessful(Boolean isTestSuccessful) {
            if (isTestSuccessful == null) {
              throw new MissingRequiredPropertyException("GetConnectionMonitorTestResult", "isTestSuccessful");
            }
            this.isTestSuccessful = isTestSuccessful;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetConnectionMonitorTestResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder path(List path) {
            if (path == null) {
              throw new MissingRequiredPropertyException("GetConnectionMonitorTestResult", "path");
            }
            this.path = path;
            return this;
        }
        public Builder path(String... path) {
            return path(List.of(path));
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetConnectionMonitorTestResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder sourceAgent(@Nullable String sourceAgent) {

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

            this.testFrequencyInSec = testFrequencyInSec;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetConnectionMonitorTestResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetConnectionMonitorTestResult build() {
            final var _resultValue = new GetConnectionMonitorTestResult();
            _resultValue.destination = destination;
            _resultValue.destinationPort = destinationPort;
            _resultValue.id = id;
            _resultValue.isTestSuccessful = isTestSuccessful;
            _resultValue.name = name;
            _resultValue.path = path;
            _resultValue.provisioningState = provisioningState;
            _resultValue.sourceAgent = sourceAgent;
            _resultValue.testFrequencyInSec = testFrequencyInSec;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy