com.pulumi.azurenative.awsconnector.outputs.ProjectSourceVersionResponse 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.
The newest version!
// *** 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.awsconnector.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 ProjectSourceVersionResponse {
/**
* @return <p>An identifier for a source in the build project. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length. </p>
*
*/
private @Nullable String sourceIdentifier;
/**
* @return <p>The source version for the corresponding source identifier. If specified, must be one of:</p> <ul> <li> <p>For CodeCommit: the commit ID, branch, or Git tag to use.</p> </li> <li> <p>For GitHub or GitLab: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example, <code>pr/25</code>). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </li> <li> <p>For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </li> <li> <p>For Amazon S3: the version ID of the object that represents the build input ZIP file to use.</p> </li> </ul> <p> For more information, see <a href='https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html'>Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>. </p>
*
*/
private @Nullable String sourceVersion;
private ProjectSourceVersionResponse() {}
/**
* @return <p>An identifier for a source in the build project. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length. </p>
*
*/
public Optional sourceIdentifier() {
return Optional.ofNullable(this.sourceIdentifier);
}
/**
* @return <p>The source version for the corresponding source identifier. If specified, must be one of:</p> <ul> <li> <p>For CodeCommit: the commit ID, branch, or Git tag to use.</p> </li> <li> <p>For GitHub or GitLab: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example, <code>pr/25</code>). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </li> <li> <p>For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </li> <li> <p>For Amazon S3: the version ID of the object that represents the build input ZIP file to use.</p> </li> </ul> <p> For more information, see <a href='https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html'>Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>. </p>
*
*/
public Optional sourceVersion() {
return Optional.ofNullable(this.sourceVersion);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ProjectSourceVersionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String sourceIdentifier;
private @Nullable String sourceVersion;
public Builder() {}
public Builder(ProjectSourceVersionResponse defaults) {
Objects.requireNonNull(defaults);
this.sourceIdentifier = defaults.sourceIdentifier;
this.sourceVersion = defaults.sourceVersion;
}
@CustomType.Setter
public Builder sourceIdentifier(@Nullable String sourceIdentifier) {
this.sourceIdentifier = sourceIdentifier;
return this;
}
@CustomType.Setter
public Builder sourceVersion(@Nullable String sourceVersion) {
this.sourceVersion = sourceVersion;
return this;
}
public ProjectSourceVersionResponse build() {
final var _resultValue = new ProjectSourceVersionResponse();
_resultValue.sourceIdentifier = sourceIdentifier;
_resultValue.sourceVersion = sourceVersion;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy