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

com.pulumi.azurenative.appplatform.outputs.RequiredTrafficResponse Maven / Gradle / Ivy

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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class RequiredTrafficResponse {
    /**
     * @return The direction of required traffic
     * 
     */
    private String direction;
    /**
     * @return The FQDN list of required traffic
     * 
     */
    private List fqdns;
    /**
     * @return The ip list of required traffic
     * 
     */
    private List ips;
    /**
     * @return The port of required traffic
     * 
     */
    private Integer port;
    /**
     * @return The protocol of required traffic
     * 
     */
    private String protocol;

    private RequiredTrafficResponse() {}
    /**
     * @return The direction of required traffic
     * 
     */
    public String direction() {
        return this.direction;
    }
    /**
     * @return The FQDN list of required traffic
     * 
     */
    public List fqdns() {
        return this.fqdns;
    }
    /**
     * @return The ip list of required traffic
     * 
     */
    public List ips() {
        return this.ips;
    }
    /**
     * @return The port of required traffic
     * 
     */
    public Integer port() {
        return this.port;
    }
    /**
     * @return The protocol of required traffic
     * 
     */
    public String protocol() {
        return this.protocol;
    }

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

    public static Builder builder(RequiredTrafficResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String direction;
        private List fqdns;
        private List ips;
        private Integer port;
        private String protocol;
        public Builder() {}
        public Builder(RequiredTrafficResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.direction = defaults.direction;
    	      this.fqdns = defaults.fqdns;
    	      this.ips = defaults.ips;
    	      this.port = defaults.port;
    	      this.protocol = defaults.protocol;
        }

        @CustomType.Setter
        public Builder direction(String direction) {
            if (direction == null) {
              throw new MissingRequiredPropertyException("RequiredTrafficResponse", "direction");
            }
            this.direction = direction;
            return this;
        }
        @CustomType.Setter
        public Builder fqdns(List fqdns) {
            if (fqdns == null) {
              throw new MissingRequiredPropertyException("RequiredTrafficResponse", "fqdns");
            }
            this.fqdns = fqdns;
            return this;
        }
        public Builder fqdns(String... fqdns) {
            return fqdns(List.of(fqdns));
        }
        @CustomType.Setter
        public Builder ips(List ips) {
            if (ips == null) {
              throw new MissingRequiredPropertyException("RequiredTrafficResponse", "ips");
            }
            this.ips = ips;
            return this;
        }
        public Builder ips(String... ips) {
            return ips(List.of(ips));
        }
        @CustomType.Setter
        public Builder port(Integer port) {
            if (port == null) {
              throw new MissingRequiredPropertyException("RequiredTrafficResponse", "port");
            }
            this.port = port;
            return this;
        }
        @CustomType.Setter
        public Builder protocol(String protocol) {
            if (protocol == null) {
              throw new MissingRequiredPropertyException("RequiredTrafficResponse", "protocol");
            }
            this.protocol = protocol;
            return this;
        }
        public RequiredTrafficResponse build() {
            final var _resultValue = new RequiredTrafficResponse();
            _resultValue.direction = direction;
            _resultValue.fqdns = fqdns;
            _resultValue.ips = ips;
            _resultValue.port = port;
            _resultValue.protocol = protocol;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy