
com.pulumi.github.inputs.GetRestApiArgs Maven / Gradle / Ivy
// *** 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class GetRestApiArgs extends com.pulumi.resources.InvokeArgs {
public static final GetRestApiArgs Empty = new GetRestApiArgs();
/**
* REST API endpoint to send the GET request to.
*
*/
@Import(name="endpoint", required=true)
private Output endpoint;
/**
* @return REST API endpoint to send the GET request to.
*
*/
public Output endpoint() {
return this.endpoint;
}
private GetRestApiArgs() {}
private GetRestApiArgs(GetRestApiArgs $) {
this.endpoint = $.endpoint;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRestApiArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetRestApiArgs $;
public Builder() {
$ = new GetRestApiArgs();
}
public Builder(GetRestApiArgs defaults) {
$ = new GetRestApiArgs(Objects.requireNonNull(defaults));
}
/**
* @param endpoint REST API endpoint to send the GET request to.
*
* @return builder
*
*/
public Builder endpoint(Output endpoint) {
$.endpoint = endpoint;
return this;
}
/**
* @param endpoint REST API endpoint to send the GET request to.
*
* @return builder
*
*/
public Builder endpoint(String endpoint) {
return endpoint(Output.of(endpoint));
}
public GetRestApiArgs build() {
if ($.endpoint == null) {
throw new MissingRequiredPropertyException("GetRestApiArgs", "endpoint");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy