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