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

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

There is a newer version: 6.5.0
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.GetRepositoryWebhooksWebhook;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetRepositoryWebhooksResult {
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private String repository;
    /**
     * @return An Array of GitHub Webhooks.  Each `webhook` block consists of the fields documented below.
     * ***
     * 
     */
    private List webhooks;

    private GetRepositoryWebhooksResult() {}
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public String repository() {
        return this.repository;
    }
    /**
     * @return An Array of GitHub Webhooks.  Each `webhook` block consists of the fields documented below.
     * ***
     * 
     */
    public List webhooks() {
        return this.webhooks;
    }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy