com.pulumi.github.outputs.GetCodespacesPublicKeyResult 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 java.lang.String;
import java.util.Objects;
@CustomType
public final class GetCodespacesPublicKeyResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return Actual key retrieved.
*
*/
private String key;
/**
* @return ID of the key that has been retrieved.
*
*/
private String keyId;
private String repository;
private GetCodespacesPublicKeyResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Actual key retrieved.
*
*/
public String key() {
return this.key;
}
/**
* @return ID of the key that has been retrieved.
*
*/
public String keyId() {
return this.keyId;
}
public String repository() {
return this.repository;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetCodespacesPublicKeyResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private String key;
private String keyId;
private String repository;
public Builder() {}
public Builder(GetCodespacesPublicKeyResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.key = defaults.key;
this.keyId = defaults.keyId;
this.repository = defaults.repository;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetCodespacesPublicKeyResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder key(String key) {
if (key == null) {
throw new MissingRequiredPropertyException("GetCodespacesPublicKeyResult", "key");
}
this.key = key;
return this;
}
@CustomType.Setter
public Builder keyId(String keyId) {
if (keyId == null) {
throw new MissingRequiredPropertyException("GetCodespacesPublicKeyResult", "keyId");
}
this.keyId = keyId;
return this;
}
@CustomType.Setter
public Builder repository(String repository) {
if (repository == null) {
throw new MissingRequiredPropertyException("GetCodespacesPublicKeyResult", "repository");
}
this.repository = repository;
return this;
}
public GetCodespacesPublicKeyResult build() {
final var _resultValue = new GetCodespacesPublicKeyResult();
_resultValue.id = id;
_resultValue.key = key;
_resultValue.keyId = keyId;
_resultValue.repository = repository;
return _resultValue;
}
}
}