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

com.pulumi.github.outputs.GetIssueLabelsResult Maven / Gradle / Ivy

There is a newer version: 6.4.0-alpha.1731735876
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.github.outputs;

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

@CustomType
public final class GetIssueLabelsResult {
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return The list of this repository's labels. Each element of `labels` has the following attributes:
     * 
     */
    private List labels;
    private String repository;

    private GetIssueLabelsResult() {}
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The list of this repository's labels. Each element of `labels` has the following attributes:
     * 
     */
    public List labels() {
        return this.labels;
    }
    public String repository() {
        return this.repository;
    }

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

    public static Builder builder(GetIssueLabelsResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String id;
        private List labels;
        private String repository;
        public Builder() {}
        public Builder(GetIssueLabelsResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.labels = defaults.labels;
    	      this.repository = defaults.repository;
        }

        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetIssueLabelsResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder labels(List labels) {
            if (labels == null) {
              throw new MissingRequiredPropertyException("GetIssueLabelsResult", "labels");
            }
            this.labels = labels;
            return this;
        }
        public Builder labels(GetIssueLabelsLabel... labels) {
            return labels(List.of(labels));
        }
        @CustomType.Setter
        public Builder repository(String repository) {
            if (repository == null) {
              throw new MissingRequiredPropertyException("GetIssueLabelsResult", "repository");
            }
            this.repository = repository;
            return this;
        }
        public GetIssueLabelsResult build() {
            final var _resultValue = new GetIssueLabelsResult();
            _resultValue.id = id;
            _resultValue.labels = labels;
            _resultValue.repository = repository;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy