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

com.pulumi.gitlab.outputs.GetReleaseLinksResult Maven / Gradle / Ivy

The 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.gitlab.outputs;

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

@CustomType
public final class GetReleaseLinksResult {
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return The ID or full path to the project.
     * 
     */
    private String project;
    /**
     * @return List of release links
     * 
     */
    private List releaseLinks;
    /**
     * @return The tag associated with the Release.
     * 
     */
    private String tagName;

    private GetReleaseLinksResult() {}
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The ID or full path to the project.
     * 
     */
    public String project() {
        return this.project;
    }
    /**
     * @return List of release links
     * 
     */
    public List releaseLinks() {
        return this.releaseLinks;
    }
    /**
     * @return The tag associated with the Release.
     * 
     */
    public String tagName() {
        return this.tagName;
    }

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

    public static Builder builder(GetReleaseLinksResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String id;
        private String project;
        private List releaseLinks;
        private String tagName;
        public Builder() {}
        public Builder(GetReleaseLinksResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.project = defaults.project;
    	      this.releaseLinks = defaults.releaseLinks;
    	      this.tagName = defaults.tagName;
        }

        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetReleaseLinksResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder project(String project) {
            if (project == null) {
              throw new MissingRequiredPropertyException("GetReleaseLinksResult", "project");
            }
            this.project = project;
            return this;
        }
        @CustomType.Setter
        public Builder releaseLinks(List releaseLinks) {
            if (releaseLinks == null) {
              throw new MissingRequiredPropertyException("GetReleaseLinksResult", "releaseLinks");
            }
            this.releaseLinks = releaseLinks;
            return this;
        }
        public Builder releaseLinks(GetReleaseLinksReleaseLink... releaseLinks) {
            return releaseLinks(List.of(releaseLinks));
        }
        @CustomType.Setter
        public Builder tagName(String tagName) {
            if (tagName == null) {
              throw new MissingRequiredPropertyException("GetReleaseLinksResult", "tagName");
            }
            this.tagName = tagName;
            return this;
        }
        public GetReleaseLinksResult build() {
            final var _resultValue = new GetReleaseLinksResult();
            _resultValue.id = id;
            _resultValue.project = project;
            _resultValue.releaseLinks = releaseLinks;
            _resultValue.tagName = tagName;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy