
com.pulumi.azurenative.appplatform.outputs.AcceleratorGitRepositoryResponse 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.azurenative.appplatform.outputs;
import com.pulumi.azurenative.appplatform.outputs.AcceleratorBasicAuthSettingResponse;
import com.pulumi.azurenative.appplatform.outputs.AcceleratorPublicSettingResponse;
import com.pulumi.azurenative.appplatform.outputs.AcceleratorSshSettingResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AcceleratorGitRepositoryResponse {
/**
* @return Properties of the auth setting payload.
*
*/
private Object authSetting;
/**
* @return Git repository branch to be used.
*
*/
private @Nullable String branch;
/**
* @return Git repository commit to be used.
*
*/
private @Nullable String commit;
/**
* @return Git repository tag to be used.
*
*/
private @Nullable String gitTag;
/**
* @return Interval for checking for updates to Git or image repository.
*
*/
private @Nullable Integer intervalInSeconds;
/**
* @return Git repository URL for the accelerator.
*
*/
private String url;
private AcceleratorGitRepositoryResponse() {}
/**
* @return Properties of the auth setting payload.
*
*/
public Object authSetting() {
return this.authSetting;
}
/**
* @return Git repository branch to be used.
*
*/
public Optional branch() {
return Optional.ofNullable(this.branch);
}
/**
* @return Git repository commit to be used.
*
*/
public Optional commit() {
return Optional.ofNullable(this.commit);
}
/**
* @return Git repository tag to be used.
*
*/
public Optional gitTag() {
return Optional.ofNullable(this.gitTag);
}
/**
* @return Interval for checking for updates to Git or image repository.
*
*/
public Optional intervalInSeconds() {
return Optional.ofNullable(this.intervalInSeconds);
}
/**
* @return Git repository URL for the accelerator.
*
*/
public String url() {
return this.url;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AcceleratorGitRepositoryResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Object authSetting;
private @Nullable String branch;
private @Nullable String commit;
private @Nullable String gitTag;
private @Nullable Integer intervalInSeconds;
private String url;
public Builder() {}
public Builder(AcceleratorGitRepositoryResponse defaults) {
Objects.requireNonNull(defaults);
this.authSetting = defaults.authSetting;
this.branch = defaults.branch;
this.commit = defaults.commit;
this.gitTag = defaults.gitTag;
this.intervalInSeconds = defaults.intervalInSeconds;
this.url = defaults.url;
}
@CustomType.Setter
public Builder authSetting(Object authSetting) {
if (authSetting == null) {
throw new MissingRequiredPropertyException("AcceleratorGitRepositoryResponse", "authSetting");
}
this.authSetting = authSetting;
return this;
}
@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 gitTag(@Nullable String gitTag) {
this.gitTag = gitTag;
return this;
}
@CustomType.Setter
public Builder intervalInSeconds(@Nullable Integer intervalInSeconds) {
this.intervalInSeconds = intervalInSeconds;
return this;
}
@CustomType.Setter
public Builder url(String url) {
if (url == null) {
throw new MissingRequiredPropertyException("AcceleratorGitRepositoryResponse", "url");
}
this.url = url;
return this;
}
public AcceleratorGitRepositoryResponse build() {
final var _resultValue = new AcceleratorGitRepositoryResponse();
_resultValue.authSetting = authSetting;
_resultValue.branch = branch;
_resultValue.commit = commit;
_resultValue.gitTag = gitTag;
_resultValue.intervalInSeconds = intervalInSeconds;
_resultValue.url = url;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy