com.pulumi.github.outputs.GetBranchResult Maven / Gradle / Ivy
// *** 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 java.lang.String;
import java.util.Objects;
@CustomType
public final class GetBranchResult {
private String branch;
/**
* @return An etag representing the Branch object.
*
*/
private String etag;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return A string representing a branch reference, in the form of `refs/heads/<branch>`.
*
*/
private String ref;
private String repository;
/**
* @return A string storing the reference's `HEAD` commit's SHA1.
*
*/
private String sha;
private GetBranchResult() {}
public String branch() {
return this.branch;
}
/**
* @return An etag representing the Branch object.
*
*/
public String etag() {
return this.etag;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return A string representing a branch reference, in the form of `refs/heads/<branch>`.
*
*/
public String ref() {
return this.ref;
}
public String repository() {
return this.repository;
}
/**
* @return A string storing the reference's `HEAD` commit's SHA1.
*
*/
public String sha() {
return this.sha;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetBranchResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String branch;
private String etag;
private String id;
private String ref;
private String repository;
private String sha;
public Builder() {}
public Builder(GetBranchResult defaults) {
Objects.requireNonNull(defaults);
this.branch = defaults.branch;
this.etag = defaults.etag;
this.id = defaults.id;
this.ref = defaults.ref;
this.repository = defaults.repository;
this.sha = defaults.sha;
}
@CustomType.Setter
public Builder branch(String branch) {
this.branch = Objects.requireNonNull(branch);
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
this.etag = Objects.requireNonNull(etag);
return this;
}
@CustomType.Setter
public Builder id(String id) {
this.id = Objects.requireNonNull(id);
return this;
}
@CustomType.Setter
public Builder ref(String ref) {
this.ref = Objects.requireNonNull(ref);
return this;
}
@CustomType.Setter
public Builder repository(String repository) {
this.repository = Objects.requireNonNull(repository);
return this;
}
@CustomType.Setter
public Builder sha(String sha) {
this.sha = Objects.requireNonNull(sha);
return this;
}
public GetBranchResult build() {
final var o = new GetBranchResult();
o.branch = branch;
o.etag = etag;
o.id = id;
o.ref = ref;
o.repository = repository;
o.sha = sha;
return o;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy