
com.pulumi.azurenative.containerregistry.outputs.SourceTriggerDescriptorResponse 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.containerregistry.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 SourceTriggerDescriptorResponse {
/**
* @return The branch name in the repository.
*
*/
private @Nullable String branchName;
/**
* @return The unique ID that identifies a commit.
*
*/
private @Nullable String commitId;
/**
* @return The event type of the trigger.
*
*/
private @Nullable String eventType;
/**
* @return The unique ID of the trigger.
*
*/
private @Nullable String id;
/**
* @return The source control provider type.
*
*/
private @Nullable String providerType;
/**
* @return The unique ID that identifies pull request.
*
*/
private @Nullable String pullRequestId;
/**
* @return The repository URL.
*
*/
private @Nullable String repositoryUrl;
private SourceTriggerDescriptorResponse() {}
/**
* @return The branch name in the repository.
*
*/
public Optional branchName() {
return Optional.ofNullable(this.branchName);
}
/**
* @return The unique ID that identifies a commit.
*
*/
public Optional commitId() {
return Optional.ofNullable(this.commitId);
}
/**
* @return The event type of the trigger.
*
*/
public Optional eventType() {
return Optional.ofNullable(this.eventType);
}
/**
* @return The unique ID of the trigger.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return The source control provider type.
*
*/
public Optional providerType() {
return Optional.ofNullable(this.providerType);
}
/**
* @return The unique ID that identifies pull request.
*
*/
public Optional pullRequestId() {
return Optional.ofNullable(this.pullRequestId);
}
/**
* @return The repository URL.
*
*/
public Optional repositoryUrl() {
return Optional.ofNullable(this.repositoryUrl);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SourceTriggerDescriptorResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String branchName;
private @Nullable String commitId;
private @Nullable String eventType;
private @Nullable String id;
private @Nullable String providerType;
private @Nullable String pullRequestId;
private @Nullable String repositoryUrl;
public Builder() {}
public Builder(SourceTriggerDescriptorResponse defaults) {
Objects.requireNonNull(defaults);
this.branchName = defaults.branchName;
this.commitId = defaults.commitId;
this.eventType = defaults.eventType;
this.id = defaults.id;
this.providerType = defaults.providerType;
this.pullRequestId = defaults.pullRequestId;
this.repositoryUrl = defaults.repositoryUrl;
}
@CustomType.Setter
public Builder branchName(@Nullable String branchName) {
this.branchName = branchName;
return this;
}
@CustomType.Setter
public Builder commitId(@Nullable String commitId) {
this.commitId = commitId;
return this;
}
@CustomType.Setter
public Builder eventType(@Nullable String eventType) {
this.eventType = eventType;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder providerType(@Nullable String providerType) {
this.providerType = providerType;
return this;
}
@CustomType.Setter
public Builder pullRequestId(@Nullable String pullRequestId) {
this.pullRequestId = pullRequestId;
return this;
}
@CustomType.Setter
public Builder repositoryUrl(@Nullable String repositoryUrl) {
this.repositoryUrl = repositoryUrl;
return this;
}
public SourceTriggerDescriptorResponse build() {
final var _resultValue = new SourceTriggerDescriptorResponse();
_resultValue.branchName = branchName;
_resultValue.commitId = commitId;
_resultValue.eventType = eventType;
_resultValue.id = id;
_resultValue.providerType = providerType;
_resultValue.pullRequestId = pullRequestId;
_resultValue.repositoryUrl = repositoryUrl;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy