com.pulumi.github.inputs.GetRepositoryMilestonePlainArgs 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.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
public final class GetRepositoryMilestonePlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetRepositoryMilestonePlainArgs Empty = new GetRepositoryMilestonePlainArgs();
/**
* The number of the milestone.
*
*/
@Import(name="number", required=true)
private Integer number;
/**
* @return The number of the milestone.
*
*/
public Integer number() {
return this.number;
}
/**
* Owner of the repository.
*
*/
@Import(name="owner", required=true)
private String owner;
/**
* @return Owner of the repository.
*
*/
public String owner() {
return this.owner;
}
/**
* Name of the repository to retrieve the milestone from.
*
*/
@Import(name="repository", required=true)
private String repository;
/**
* @return Name of the repository to retrieve the milestone from.
*
*/
public String repository() {
return this.repository;
}
private GetRepositoryMilestonePlainArgs() {}
private GetRepositoryMilestonePlainArgs(GetRepositoryMilestonePlainArgs $) {
this.number = $.number;
this.owner = $.owner;
this.repository = $.repository;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRepositoryMilestonePlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetRepositoryMilestonePlainArgs $;
public Builder() {
$ = new GetRepositoryMilestonePlainArgs();
}
public Builder(GetRepositoryMilestonePlainArgs defaults) {
$ = new GetRepositoryMilestonePlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param number The number of the milestone.
*
* @return builder
*
*/
public Builder number(Integer number) {
$.number = number;
return this;
}
/**
* @param owner Owner of the repository.
*
* @return builder
*
*/
public Builder owner(String owner) {
$.owner = owner;
return this;
}
/**
* @param repository Name of the repository to retrieve the milestone from.
*
* @return builder
*
*/
public Builder repository(String repository) {
$.repository = repository;
return this;
}
public GetRepositoryMilestonePlainArgs build() {
if ($.number == null) {
throw new MissingRequiredPropertyException("GetRepositoryMilestonePlainArgs", "number");
}
if ($.owner == null) {
throw new MissingRequiredPropertyException("GetRepositoryMilestonePlainArgs", "owner");
}
if ($.repository == null) {
throw new MissingRequiredPropertyException("GetRepositoryMilestonePlainArgs", "repository");
}
return $;
}
}
}