
com.pulumi.azurenative.devhub.outputs.WorkflowRunResponse 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.devhub.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 WorkflowRunResponse {
/**
* @return The timestamp of the last workflow run.
*
*/
private String lastRunAt;
/**
* @return Describes if the workflow run succeeded.
*
*/
private Boolean succeeded;
/**
* @return Describes the status of the workflow run
*
*/
private @Nullable String workflowRunStatus;
/**
* @return URL to the run of the workflow.
*
*/
private String workflowRunURL;
private WorkflowRunResponse() {}
/**
* @return The timestamp of the last workflow run.
*
*/
public String lastRunAt() {
return this.lastRunAt;
}
/**
* @return Describes if the workflow run succeeded.
*
*/
public Boolean succeeded() {
return this.succeeded;
}
/**
* @return Describes the status of the workflow run
*
*/
public Optional workflowRunStatus() {
return Optional.ofNullable(this.workflowRunStatus);
}
/**
* @return URL to the run of the workflow.
*
*/
public String workflowRunURL() {
return this.workflowRunURL;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WorkflowRunResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String lastRunAt;
private Boolean succeeded;
private @Nullable String workflowRunStatus;
private String workflowRunURL;
public Builder() {}
public Builder(WorkflowRunResponse defaults) {
Objects.requireNonNull(defaults);
this.lastRunAt = defaults.lastRunAt;
this.succeeded = defaults.succeeded;
this.workflowRunStatus = defaults.workflowRunStatus;
this.workflowRunURL = defaults.workflowRunURL;
}
@CustomType.Setter
public Builder lastRunAt(String lastRunAt) {
if (lastRunAt == null) {
throw new MissingRequiredPropertyException("WorkflowRunResponse", "lastRunAt");
}
this.lastRunAt = lastRunAt;
return this;
}
@CustomType.Setter
public Builder succeeded(Boolean succeeded) {
if (succeeded == null) {
throw new MissingRequiredPropertyException("WorkflowRunResponse", "succeeded");
}
this.succeeded = succeeded;
return this;
}
@CustomType.Setter
public Builder workflowRunStatus(@Nullable String workflowRunStatus) {
this.workflowRunStatus = workflowRunStatus;
return this;
}
@CustomType.Setter
public Builder workflowRunURL(String workflowRunURL) {
if (workflowRunURL == null) {
throw new MissingRequiredPropertyException("WorkflowRunResponse", "workflowRunURL");
}
this.workflowRunURL = workflowRunURL;
return this;
}
public WorkflowRunResponse build() {
final var _resultValue = new WorkflowRunResponse();
_resultValue.lastRunAt = lastRunAt;
_resultValue.succeeded = succeeded;
_resultValue.workflowRunStatus = workflowRunStatus;
_resultValue.workflowRunURL = workflowRunURL;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy