
com.pulumi.azurenative.kubernetesconfiguration.outputs.RepositoryRefDefinitionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.kubernetesconfiguration.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RepositoryRefDefinitionResponse {
/**
* @return The git repository branch name to checkout.
*
*/
private @Nullable String branch;
/**
* @return The commit SHA to checkout. This value must be combined with the branch name to be valid. This takes precedence over semver.
*
*/
private @Nullable String commit;
/**
* @return The semver range used to match against git repository tags. This takes precedence over tag.
*
*/
private @Nullable String semver;
/**
* @return The git repository tag name to checkout. This takes precedence over branch.
*
*/
private @Nullable String tag;
private RepositoryRefDefinitionResponse() {}
/**
* @return The git repository branch name to checkout.
*
*/
public Optional branch() {
return Optional.ofNullable(this.branch);
}
/**
* @return The commit SHA to checkout. This value must be combined with the branch name to be valid. This takes precedence over semver.
*
*/
public Optional commit() {
return Optional.ofNullable(this.commit);
}
/**
* @return The semver range used to match against git repository tags. This takes precedence over tag.
*
*/
public Optional semver() {
return Optional.ofNullable(this.semver);
}
/**
* @return The git repository tag name to checkout. This takes precedence over branch.
*
*/
public Optional tag() {
return Optional.ofNullable(this.tag);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RepositoryRefDefinitionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String branch;
private @Nullable String commit;
private @Nullable String semver;
private @Nullable String tag;
public Builder() {}
public Builder(RepositoryRefDefinitionResponse defaults) {
Objects.requireNonNull(defaults);
this.branch = defaults.branch;
this.commit = defaults.commit;
this.semver = defaults.semver;
this.tag = defaults.tag;
}
@CustomType.Setter
public Builder branch(@Nullable String branch) {
this.branch = branch;
return this;
}
@CustomType.Setter
public Builder commit(@Nullable String commit) {
this.commit = commit;
return this;
}
@CustomType.Setter
public Builder semver(@Nullable String semver) {
this.semver = semver;
return this;
}
@CustomType.Setter
public Builder tag(@Nullable String tag) {
this.tag = tag;
return this;
}
public RepositoryRefDefinitionResponse build() {
final var _resultValue = new RepositoryRefDefinitionResponse();
_resultValue.branch = branch;
_resultValue.commit = commit;
_resultValue.semver = semver;
_resultValue.tag = tag;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy