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

com.pulumi.azurenative.web.outputs.AllowedPrincipalsResponse 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.azurenative.web.outputs;

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

@CustomType
public final class AllowedPrincipalsResponse {
    /**
     * @return The list of the allowed groups.
     * 
     */
    private @Nullable List groups;
    /**
     * @return The list of the allowed identities.
     * 
     */
    private @Nullable List identities;

    private AllowedPrincipalsResponse() {}
    /**
     * @return The list of the allowed groups.
     * 
     */
    public List groups() {
        return this.groups == null ? List.of() : this.groups;
    }
    /**
     * @return The list of the allowed identities.
     * 
     */
    public List identities() {
        return this.identities == null ? List.of() : this.identities;
    }

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

    public static Builder builder(AllowedPrincipalsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List groups;
        private @Nullable List identities;
        public Builder() {}
        public Builder(AllowedPrincipalsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.groups = defaults.groups;
    	      this.identities = defaults.identities;
        }

        @CustomType.Setter
        public Builder groups(@Nullable List groups) {

            this.groups = groups;
            return this;
        }
        public Builder groups(String... groups) {
            return groups(List.of(groups));
        }
        @CustomType.Setter
        public Builder identities(@Nullable List identities) {

            this.identities = identities;
            return this;
        }
        public Builder identities(String... identities) {
            return identities(List.of(identities));
        }
        public AllowedPrincipalsResponse build() {
            final var _resultValue = new AllowedPrincipalsResponse();
            _resultValue.groups = groups;
            _resultValue.identities = identities;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy