com.pulumi.github.outputs.GetOrganizationWebhooksResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of github Show documentation
Show all versions of github Show documentation
A Pulumi package for creating and managing github cloud resources.
// *** 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.GetOrganizationWebhooksWebhook;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetOrganizationWebhooksResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return An Array of GitHub Webhooks. Each `webhook` block consists of the fields documented below.
* ***
*
*/
private List webhooks;
private GetOrganizationWebhooksResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @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(GetOrganizationWebhooksResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private List webhooks;
public Builder() {}
public Builder(GetOrganizationWebhooksResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.webhooks = defaults.webhooks;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetOrganizationWebhooksResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder webhooks(List webhooks) {
if (webhooks == null) {
throw new MissingRequiredPropertyException("GetOrganizationWebhooksResult", "webhooks");
}
this.webhooks = webhooks;
return this;
}
public Builder webhooks(GetOrganizationWebhooksWebhook... webhooks) {
return webhooks(List.of(webhooks));
}
public GetOrganizationWebhooksResult build() {
final var _resultValue = new GetOrganizationWebhooksResult();
_resultValue.id = id;
_resultValue.webhooks = webhooks;
return _resultValue;
}
}
}