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