// *** 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.gcp.beyondcorp.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.beyondcorp.outputs.GetAppGatewayAllocatedConnection;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetAppGatewayResult {
    private List<GetAppGatewayAllocatedConnection> allocatedConnections;
    private String displayName;
    private String hostType;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private Map<String,String> labels;
    private String name;
    private @Nullable String project;
    private @Nullable String region;
    private String state;
    private String type;
    private String uri;

    private GetAppGatewayResult() {}
    public List<GetAppGatewayAllocatedConnection> allocatedConnections() {
        return this.allocatedConnections;
    }
    public String displayName() {
        return this.displayName;
    }
    public String hostType() {
        return this.hostType;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public Map<String,String> labels() {
        return this.labels;
    }
    public String name() {
        return this.name;
    }
    public Optional<String> project() {
        return Optional.ofNullable(this.project);
    }
    public Optional<String> region() {
        return Optional.ofNullable(this.region);
    }
    public String state() {
        return this.state;
    }
    public String type() {
        return this.type;
    }
    public String uri() {
        return this.uri;
    }

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

    public static Builder builder(GetAppGatewayResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<GetAppGatewayAllocatedConnection> allocatedConnections;
        private String displayName;
        private String hostType;
        private String id;
        private Map<String,String> labels;
        private String name;
        private @Nullable String project;
        private @Nullable String region;
        private String state;
        private String type;
        private String uri;
        public Builder() {}
        public Builder(GetAppGatewayResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allocatedConnections = defaults.allocatedConnections;
    	      this.displayName = defaults.displayName;
    	      this.hostType = defaults.hostType;
    	      this.id = defaults.id;
    	      this.labels = defaults.labels;
    	      this.name = defaults.name;
    	      this.project = defaults.project;
    	      this.region = defaults.region;
    	      this.state = defaults.state;
    	      this.type = defaults.type;
    	      this.uri = defaults.uri;
        }

        @CustomType.Setter
        public Builder allocatedConnections(List<GetAppGatewayAllocatedConnection> allocatedConnections) {
            this.allocatedConnections = Objects.requireNonNull(allocatedConnections);
            return this;
        }
        public Builder allocatedConnections(GetAppGatewayAllocatedConnection... allocatedConnections) {
            return allocatedConnections(List.of(allocatedConnections));
        }
        @CustomType.Setter
        public Builder displayName(String displayName) {
            this.displayName = Objects.requireNonNull(displayName);
            return this;
        }
        @CustomType.Setter
        public Builder hostType(String hostType) {
            this.hostType = Objects.requireNonNull(hostType);
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder labels(Map<String,String> labels) {
            this.labels = Objects.requireNonNull(labels);
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder project(@Nullable String project) {
            this.project = project;
            return this;
        }
        @CustomType.Setter
        public Builder region(@Nullable String region) {
            this.region = region;
            return this;
        }
        @CustomType.Setter
        public Builder state(String state) {
            this.state = Objects.requireNonNull(state);
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            this.type = Objects.requireNonNull(type);
            return this;
        }
        @CustomType.Setter
        public Builder uri(String uri) {
            this.uri = Objects.requireNonNull(uri);
            return this;
        }
        public GetAppGatewayResult build() {
            final var o = new GetAppGatewayResult();
            o.allocatedConnections = allocatedConnections;
            o.displayName = displayName;
            o.hostType = hostType;
            o.id = id;
            o.labels = labels;
            o.name = name;
            o.project = project;
            o.region = region;
            o.state = state;
            o.type = type;
            o.uri = uri;
            return o;
        }
    }
}
