com.pulumi.azure.datafactory.outputs.FactoryVstsConfiguration 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.azure.datafactory.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class FactoryVstsConfiguration {
/**
* @return Specifies the VSTS account name.
*
*/
private String accountName;
/**
* @return Specifies the branch of the repository to get code from.
*
*/
private String branchName;
/**
* @return Specifies the name of the VSTS project.
*
*/
private String projectName;
/**
* @return Is automated publishing enabled? Defaults to `true`.
*
*/
private @Nullable Boolean publishingEnabled;
/**
* @return Specifies the name of the git repository.
*
*/
private String repositoryName;
/**
* @return Specifies the root folder within the repository. Set to `/` for the top level.
*
*/
private String rootFolder;
/**
* @return Specifies the Tenant ID associated with the VSTS account.
*
*/
private String tenantId;
private FactoryVstsConfiguration() {}
/**
* @return Specifies the VSTS account name.
*
*/
public String accountName() {
return this.accountName;
}
/**
* @return Specifies the branch of the repository to get code from.
*
*/
public String branchName() {
return this.branchName;
}
/**
* @return Specifies the name of the VSTS project.
*
*/
public String projectName() {
return this.projectName;
}
/**
* @return Is automated publishing enabled? Defaults to `true`.
*
*/
public Optional publishingEnabled() {
return Optional.ofNullable(this.publishingEnabled);
}
/**
* @return Specifies the name of the git repository.
*
*/
public String repositoryName() {
return this.repositoryName;
}
/**
* @return Specifies the root folder within the repository. Set to `/` for the top level.
*
*/
public String rootFolder() {
return this.rootFolder;
}
/**
* @return Specifies the Tenant ID associated with the VSTS account.
*
*/
public String tenantId() {
return this.tenantId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FactoryVstsConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String accountName;
private String branchName;
private String projectName;
private @Nullable Boolean publishingEnabled;
private String repositoryName;
private String rootFolder;
private String tenantId;
public Builder() {}
public Builder(FactoryVstsConfiguration defaults) {
Objects.requireNonNull(defaults);
this.accountName = defaults.accountName;
this.branchName = defaults.branchName;
this.projectName = defaults.projectName;
this.publishingEnabled = defaults.publishingEnabled;
this.repositoryName = defaults.repositoryName;
this.rootFolder = defaults.rootFolder;
this.tenantId = defaults.tenantId;
}
@CustomType.Setter
public Builder accountName(String accountName) {
if (accountName == null) {
throw new MissingRequiredPropertyException("FactoryVstsConfiguration", "accountName");
}
this.accountName = accountName;
return this;
}
@CustomType.Setter
public Builder branchName(String branchName) {
if (branchName == null) {
throw new MissingRequiredPropertyException("FactoryVstsConfiguration", "branchName");
}
this.branchName = branchName;
return this;
}
@CustomType.Setter
public Builder projectName(String projectName) {
if (projectName == null) {
throw new MissingRequiredPropertyException("FactoryVstsConfiguration", "projectName");
}
this.projectName = projectName;
return this;
}
@CustomType.Setter
public Builder publishingEnabled(@Nullable Boolean publishingEnabled) {
this.publishingEnabled = publishingEnabled;
return this;
}
@CustomType.Setter
public Builder repositoryName(String repositoryName) {
if (repositoryName == null) {
throw new MissingRequiredPropertyException("FactoryVstsConfiguration", "repositoryName");
}
this.repositoryName = repositoryName;
return this;
}
@CustomType.Setter
public Builder rootFolder(String rootFolder) {
if (rootFolder == null) {
throw new MissingRequiredPropertyException("FactoryVstsConfiguration", "rootFolder");
}
this.rootFolder = rootFolder;
return this;
}
@CustomType.Setter
public Builder tenantId(String tenantId) {
if (tenantId == null) {
throw new MissingRequiredPropertyException("FactoryVstsConfiguration", "tenantId");
}
this.tenantId = tenantId;
return this;
}
public FactoryVstsConfiguration build() {
final var _resultValue = new FactoryVstsConfiguration();
_resultValue.accountName = accountName;
_resultValue.branchName = branchName;
_resultValue.projectName = projectName;
_resultValue.publishingEnabled = publishingEnabled;
_resultValue.repositoryName = repositoryName;
_resultValue.rootFolder = rootFolder;
_resultValue.tenantId = tenantId;
return _resultValue;
}
}
}