com.pulumi.github.outputs.GetRepositoryTeamsResult 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.GetRepositoryTeamsTeam;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetRepositoryTeamsResult {
private String fullName;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return Team name
*
*/
private String name;
/**
* @return List of teams which have access to the repository
*
*/
private List teams;
private GetRepositoryTeamsResult() {}
public String fullName() {
return this.fullName;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Team name
*
*/
public String name() {
return this.name;
}
/**
* @return List of teams which have access to the repository
*
*/
public List teams() {
return this.teams;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRepositoryTeamsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String fullName;
private String id;
private String name;
private List teams;
public Builder() {}
public Builder(GetRepositoryTeamsResult defaults) {
Objects.requireNonNull(defaults);
this.fullName = defaults.fullName;
this.id = defaults.id;
this.name = defaults.name;
this.teams = defaults.teams;
}
@CustomType.Setter
public Builder fullName(String fullName) {
if (fullName == null) {
throw new MissingRequiredPropertyException("GetRepositoryTeamsResult", "fullName");
}
this.fullName = fullName;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetRepositoryTeamsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetRepositoryTeamsResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder teams(List teams) {
if (teams == null) {
throw new MissingRequiredPropertyException("GetRepositoryTeamsResult", "teams");
}
this.teams = teams;
return this;
}
public Builder teams(GetRepositoryTeamsTeam... teams) {
return teams(List.of(teams));
}
public GetRepositoryTeamsResult build() {
final var _resultValue = new GetRepositoryTeamsResult();
_resultValue.fullName = fullName;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.teams = teams;
return _resultValue;
}
}
}