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

com.pulumi.googlenative.networkmanagement.v1beta1.outputs.ReachabilityDetailsResponse Maven / Gradle / Ivy

// *** 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.googlenative.networkmanagement.v1beta1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.networkmanagement.v1beta1.outputs.StatusResponse;
import com.pulumi.googlenative.networkmanagement.v1beta1.outputs.TraceResponse;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class ReachabilityDetailsResponse {
    /**
     * @return The details of a failure or a cancellation of reachability analysis.
     * 
     */
    private StatusResponse error;
    /**
     * @return The overall result of the test's configuration analysis.
     * 
     */
    private String result;
    /**
     * @return Result may contain a list of traces if a test has multiple possible paths in the network, such as when destination endpoint is a load balancer with multiple backends.
     * 
     */
    private List traces;
    /**
     * @return The time of the configuration analysis.
     * 
     */
    private String verifyTime;

    private ReachabilityDetailsResponse() {}
    /**
     * @return The details of a failure or a cancellation of reachability analysis.
     * 
     */
    public StatusResponse error() {
        return this.error;
    }
    /**
     * @return The overall result of the test's configuration analysis.
     * 
     */
    public String result() {
        return this.result;
    }
    /**
     * @return Result may contain a list of traces if a test has multiple possible paths in the network, such as when destination endpoint is a load balancer with multiple backends.
     * 
     */
    public List traces() {
        return this.traces;
    }
    /**
     * @return The time of the configuration analysis.
     * 
     */
    public String verifyTime() {
        return this.verifyTime;
    }

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

    public static Builder builder(ReachabilityDetailsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private StatusResponse error;
        private String result;
        private List traces;
        private String verifyTime;
        public Builder() {}
        public Builder(ReachabilityDetailsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.error = defaults.error;
    	      this.result = defaults.result;
    	      this.traces = defaults.traces;
    	      this.verifyTime = defaults.verifyTime;
        }

        @CustomType.Setter
        public Builder error(StatusResponse error) {
            this.error = Objects.requireNonNull(error);
            return this;
        }
        @CustomType.Setter
        public Builder result(String result) {
            this.result = Objects.requireNonNull(result);
            return this;
        }
        @CustomType.Setter
        public Builder traces(List traces) {
            this.traces = Objects.requireNonNull(traces);
            return this;
        }
        public Builder traces(TraceResponse... traces) {
            return traces(List.of(traces));
        }
        @CustomType.Setter
        public Builder verifyTime(String verifyTime) {
            this.verifyTime = Objects.requireNonNull(verifyTime);
            return this;
        }
        public ReachabilityDetailsResponse build() {
            final var o = new ReachabilityDetailsResponse();
            o.error = error;
            o.result = result;
            o.traces = traces;
            o.verifyTime = verifyTime;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy