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

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetWebAppResult {
    /**
     * @return Immutable. The globally unique, Firebase-assigned identifier of the App.
     * This identifier should be treated as an opaque token, as the data format is not specified.
     * 
     */
    private String appId;
    private List<String> appUrls;
    private String deletionPolicy;
    private String displayName;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return The fully qualified resource name of the App, for example:
     * projects/projectId/webApps/appId
     * 
     */
    private String name;
    private @Nullable String project;

    private GetWebAppResult() {}
    /**
     * @return Immutable. The globally unique, Firebase-assigned identifier of the App.
     * This identifier should be treated as an opaque token, as the data format is not specified.
     * 
     */
    public String appId() {
        return this.appId;
    }
    public List<String> appUrls() {
        return this.appUrls;
    }
    public String deletionPolicy() {
        return this.deletionPolicy;
    }
    public String displayName() {
        return this.displayName;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The fully qualified resource name of the App, for example:
     * projects/projectId/webApps/appId
     * 
     */
    public String name() {
        return this.name;
    }
    public Optional<String> project() {
        return Optional.ofNullable(this.project);
    }

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

    public static Builder builder(GetWebAppResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String appId;
        private List<String> appUrls;
        private String deletionPolicy;
        private String displayName;
        private String id;
        private String name;
        private @Nullable String project;
        public Builder() {}
        public Builder(GetWebAppResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.appId = defaults.appId;
    	      this.appUrls = defaults.appUrls;
    	      this.deletionPolicy = defaults.deletionPolicy;
    	      this.displayName = defaults.displayName;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.project = defaults.project;
        }

        @CustomType.Setter
        public Builder appId(String appId) {
            this.appId = Objects.requireNonNull(appId);
            return this;
        }
        @CustomType.Setter
        public Builder appUrls(List<String> appUrls) {
            this.appUrls = Objects.requireNonNull(appUrls);
            return this;
        }
        public Builder appUrls(String... appUrls) {
            return appUrls(List.of(appUrls));
        }
        @CustomType.Setter
        public Builder deletionPolicy(String deletionPolicy) {
            this.deletionPolicy = Objects.requireNonNull(deletionPolicy);
            return this;
        }
        @CustomType.Setter
        public Builder displayName(String displayName) {
            this.displayName = Objects.requireNonNull(displayName);
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            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;
        }
        public GetWebAppResult build() {
            final var o = new GetWebAppResult();
            o.appId = appId;
            o.appUrls = appUrls;
            o.deletionPolicy = deletionPolicy;
            o.displayName = displayName;
            o.id = id;
            o.name = name;
            o.project = project;
            return o;
        }
    }
}
