com.pulumi.github.outputs.GetRepositoryEnvironmentsResult 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.
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 com.pulumi.github.outputs.GetRepositoryEnvironmentsEnvironment;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetRepositoryEnvironmentsResult {
/**
* @return The list of this repository's environments. Each element of `environments` has the following attributes:
*
*/
private List environments;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private String repository;
private GetRepositoryEnvironmentsResult() {}
/**
* @return The list of this repository's environments. Each element of `environments` has the following attributes:
*
*/
public List environments() {
return this.environments;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public String repository() {
return this.repository;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRepositoryEnvironmentsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List environments;
private String id;
private String repository;
public Builder() {}
public Builder(GetRepositoryEnvironmentsResult defaults) {
Objects.requireNonNull(defaults);
this.environments = defaults.environments;
this.id = defaults.id;
this.repository = defaults.repository;
}
@CustomType.Setter
public Builder environments(List environments) {
if (environments == null) {
throw new MissingRequiredPropertyException("GetRepositoryEnvironmentsResult", "environments");
}
this.environments = environments;
return this;
}
public Builder environments(GetRepositoryEnvironmentsEnvironment... environments) {
return environments(List.of(environments));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetRepositoryEnvironmentsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder repository(String repository) {
if (repository == null) {
throw new MissingRequiredPropertyException("GetRepositoryEnvironmentsResult", "repository");
}
this.repository = repository;
return this;
}
public GetRepositoryEnvironmentsResult build() {
final var _resultValue = new GetRepositoryEnvironmentsResult();
_resultValue.environments = environments;
_resultValue.id = id;
_resultValue.repository = repository;
return _resultValue;
}
}
}