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

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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetOrganizationWebhooksWebhook {
    /**
     * @return `true` if the webhook is active.
     * 
     */
    private Boolean active;
    /**
     * @return the ID of the webhook.
     * 
     */
    private Integer id;
    /**
     * @return the name of the webhook.
     * 
     */
    private String name;
    /**
     * @return the type of the webhook.
     * 
     */
    private String type;
    /**
     * @return the url of the webhook.
     * 
     */
    private String url;

    private GetOrganizationWebhooksWebhook() {}
    /**
     * @return `true` if the webhook is active.
     * 
     */
    public Boolean active() {
        return this.active;
    }
    /**
     * @return the ID of the webhook.
     * 
     */
    public Integer id() {
        return this.id;
    }
    /**
     * @return the name of the webhook.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return the type of the webhook.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return the url of the webhook.
     * 
     */
    public String url() {
        return this.url;
    }

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

    public static Builder builder(GetOrganizationWebhooksWebhook defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean active;
        private Integer id;
        private String name;
        private String type;
        private String url;
        public Builder() {}
        public Builder(GetOrganizationWebhooksWebhook defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.active = defaults.active;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.type = defaults.type;
    	      this.url = defaults.url;
        }

        @CustomType.Setter
        public Builder active(Boolean active) {
            if (active == null) {
              throw new MissingRequiredPropertyException("GetOrganizationWebhooksWebhook", "active");
            }
            this.active = active;
            return this;
        }
        @CustomType.Setter
        public Builder id(Integer id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetOrganizationWebhooksWebhook", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetOrganizationWebhooksWebhook", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetOrganizationWebhooksWebhook", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder url(String url) {
            if (url == null) {
              throw new MissingRequiredPropertyException("GetOrganizationWebhooksWebhook", "url");
            }
            this.url = url;
            return this;
        }
        public GetOrganizationWebhooksWebhook build() {
            final var _resultValue = new GetOrganizationWebhooksWebhook();
            _resultValue.active = active;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.type = type;
            _resultValue.url = url;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy