// *** 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.gcp.dataform.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.dataform.outputs.RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatus;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RepositoryReleaseConfigRecentScheduledReleaseRecord {
    /**
     * @return (Output)
     * The name of the created compilation result, if one was successfully created. Must be in the format projects/*{@literal /}locations/*{@literal /}repositories/*{@literal /}compilationResults/*.
     * 
     */
    private @Nullable String compilationResult;
    /**
     * @return (Output)
     * The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful.
     * Structure is documented below.
     * 
     */
    private @Nullable List<RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatus> errorStatuses;
    /**
     * @return (Output)
     * The timestamp of this release attempt.
     * 
     */
    private @Nullable String releaseTime;

    private RepositoryReleaseConfigRecentScheduledReleaseRecord() {}
    /**
     * @return (Output)
     * The name of the created compilation result, if one was successfully created. Must be in the format projects/*{@literal /}locations/*{@literal /}repositories/*{@literal /}compilationResults/*.
     * 
     */
    public Optional<String> compilationResult() {
        return Optional.ofNullable(this.compilationResult);
    }
    /**
     * @return (Output)
     * The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful.
     * Structure is documented below.
     * 
     */
    public List<RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatus> errorStatuses() {
        return this.errorStatuses == null ? List.of() : this.errorStatuses;
    }
    /**
     * @return (Output)
     * The timestamp of this release attempt.
     * 
     */
    public Optional<String> releaseTime() {
        return Optional.ofNullable(this.releaseTime);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(RepositoryReleaseConfigRecentScheduledReleaseRecord defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String compilationResult;
        private @Nullable List<RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatus> errorStatuses;
        private @Nullable String releaseTime;
        public Builder() {}
        public Builder(RepositoryReleaseConfigRecentScheduledReleaseRecord defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.compilationResult = defaults.compilationResult;
    	      this.errorStatuses = defaults.errorStatuses;
    	      this.releaseTime = defaults.releaseTime;
        }

        @CustomType.Setter
        public Builder compilationResult(@Nullable String compilationResult) {
            this.compilationResult = compilationResult;
            return this;
        }
        @CustomType.Setter
        public Builder errorStatuses(@Nullable List<RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatus> errorStatuses) {
            this.errorStatuses = errorStatuses;
            return this;
        }
        public Builder errorStatuses(RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatus... errorStatuses) {
            return errorStatuses(List.of(errorStatuses));
        }
        @CustomType.Setter
        public Builder releaseTime(@Nullable String releaseTime) {
            this.releaseTime = releaseTime;
            return this;
        }
        public RepositoryReleaseConfigRecentScheduledReleaseRecord build() {
            final var o = new RepositoryReleaseConfigRecentScheduledReleaseRecord();
            o.compilationResult = compilationResult;
            o.errorStatuses = errorStatuses;
            o.releaseTime = releaseTime;
            return o;
        }
    }
}
