com.pulumi.github.outputs.GetRepositoryAutolinkReferencesAutolinkReference 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.Boolean;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetRepositoryAutolinkReferencesAutolinkReference {
/**
* @return True if alphanumeric.
*
*/
private Boolean isAlphanumeric;
/**
* @return Key prefix.
*
*/
private String keyPrefix;
/**
* @return Target url template.
*
*/
private String targetUrlTemplate;
private GetRepositoryAutolinkReferencesAutolinkReference() {}
/**
* @return True if alphanumeric.
*
*/
public Boolean isAlphanumeric() {
return this.isAlphanumeric;
}
/**
* @return Key prefix.
*
*/
public String keyPrefix() {
return this.keyPrefix;
}
/**
* @return Target url template.
*
*/
public String targetUrlTemplate() {
return this.targetUrlTemplate;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRepositoryAutolinkReferencesAutolinkReference defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean isAlphanumeric;
private String keyPrefix;
private String targetUrlTemplate;
public Builder() {}
public Builder(GetRepositoryAutolinkReferencesAutolinkReference defaults) {
Objects.requireNonNull(defaults);
this.isAlphanumeric = defaults.isAlphanumeric;
this.keyPrefix = defaults.keyPrefix;
this.targetUrlTemplate = defaults.targetUrlTemplate;
}
@CustomType.Setter
public Builder isAlphanumeric(Boolean isAlphanumeric) {
if (isAlphanumeric == null) {
throw new MissingRequiredPropertyException("GetRepositoryAutolinkReferencesAutolinkReference", "isAlphanumeric");
}
this.isAlphanumeric = isAlphanumeric;
return this;
}
@CustomType.Setter
public Builder keyPrefix(String keyPrefix) {
if (keyPrefix == null) {
throw new MissingRequiredPropertyException("GetRepositoryAutolinkReferencesAutolinkReference", "keyPrefix");
}
this.keyPrefix = keyPrefix;
return this;
}
@CustomType.Setter
public Builder targetUrlTemplate(String targetUrlTemplate) {
if (targetUrlTemplate == null) {
throw new MissingRequiredPropertyException("GetRepositoryAutolinkReferencesAutolinkReference", "targetUrlTemplate");
}
this.targetUrlTemplate = targetUrlTemplate;
return this;
}
public GetRepositoryAutolinkReferencesAutolinkReference build() {
final var _resultValue = new GetRepositoryAutolinkReferencesAutolinkReference();
_resultValue.isAlphanumeric = isAlphanumeric;
_resultValue.keyPrefix = keyPrefix;
_resultValue.targetUrlTemplate = targetUrlTemplate;
return _resultValue;
}
}
}