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

com.pulumi.github.outputs.GetCollaboratorsResult 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.github.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.github.outputs.GetCollaboratorsCollaborator;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetCollaboratorsResult {
    private @Nullable String affiliation;
    /**
     * @return An Array of GitHub collaborators.  Each `collaborator` block consists of the fields documented below.
     * 
     */
    private List collaborators;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private String owner;
    private String repository;

    private GetCollaboratorsResult() {}
    public Optional affiliation() {
        return Optional.ofNullable(this.affiliation);
    }
    /**
     * @return An Array of GitHub collaborators.  Each `collaborator` block consists of the fields documented below.
     * 
     */
    public List collaborators() {
        return this.collaborators;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public String owner() {
        return this.owner;
    }
    public String repository() {
        return this.repository;
    }

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

    public static Builder builder(GetCollaboratorsResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String affiliation;
        private List collaborators;
        private String id;
        private String owner;
        private String repository;
        public Builder() {}
        public Builder(GetCollaboratorsResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.affiliation = defaults.affiliation;
    	      this.collaborators = defaults.collaborators;
    	      this.id = defaults.id;
    	      this.owner = defaults.owner;
    	      this.repository = defaults.repository;
        }

        @CustomType.Setter
        public Builder affiliation(@Nullable String affiliation) {

            this.affiliation = affiliation;
            return this;
        }
        @CustomType.Setter
        public Builder collaborators(List collaborators) {
            if (collaborators == null) {
              throw new MissingRequiredPropertyException("GetCollaboratorsResult", "collaborators");
            }
            this.collaborators = collaborators;
            return this;
        }
        public Builder collaborators(GetCollaboratorsCollaborator... collaborators) {
            return collaborators(List.of(collaborators));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetCollaboratorsResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder owner(String owner) {
            if (owner == null) {
              throw new MissingRequiredPropertyException("GetCollaboratorsResult", "owner");
            }
            this.owner = owner;
            return this;
        }
        @CustomType.Setter
        public Builder repository(String repository) {
            if (repository == null) {
              throw new MissingRequiredPropertyException("GetCollaboratorsResult", "repository");
            }
            this.repository = repository;
            return this;
        }
        public GetCollaboratorsResult build() {
            final var _resultValue = new GetCollaboratorsResult();
            _resultValue.affiliation = affiliation;
            _resultValue.collaborators = collaborators;
            _resultValue.id = id;
            _resultValue.owner = owner;
            _resultValue.repository = repository;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy