All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.clouddeploy.v1.outputs.JobResponse 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.googlenative.clouddeploy.v1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.clouddeploy.v1.outputs.AdvanceChildRolloutJobResponse;
import com.pulumi.googlenative.clouddeploy.v1.outputs.CreateChildRolloutJobResponse;
import com.pulumi.googlenative.clouddeploy.v1.outputs.DeployJobResponse;
import com.pulumi.googlenative.clouddeploy.v1.outputs.VerifyJobResponse;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class JobResponse {
    /**
     * @return An advanceChildRollout Job.
     * 
     */
    private AdvanceChildRolloutJobResponse advanceChildRolloutJob;
    /**
     * @return A createChildRollout Job.
     * 
     */
    private CreateChildRolloutJobResponse createChildRolloutJob;
    /**
     * @return A deploy Job.
     * 
     */
    private DeployJobResponse deployJob;
    /**
     * @return The name of the `JobRun` responsible for the most recent invocation of this Job.
     * 
     */
    private String jobRun;
    /**
     * @return Additional information on why the Job was skipped, if available.
     * 
     */
    private String skipMessage;
    /**
     * @return The current state of the Job.
     * 
     */
    private String state;
    /**
     * @return A verify Job.
     * 
     */
    private VerifyJobResponse verifyJob;

    private JobResponse() {}
    /**
     * @return An advanceChildRollout Job.
     * 
     */
    public AdvanceChildRolloutJobResponse advanceChildRolloutJob() {
        return this.advanceChildRolloutJob;
    }
    /**
     * @return A createChildRollout Job.
     * 
     */
    public CreateChildRolloutJobResponse createChildRolloutJob() {
        return this.createChildRolloutJob;
    }
    /**
     * @return A deploy Job.
     * 
     */
    public DeployJobResponse deployJob() {
        return this.deployJob;
    }
    /**
     * @return The name of the `JobRun` responsible for the most recent invocation of this Job.
     * 
     */
    public String jobRun() {
        return this.jobRun;
    }
    /**
     * @return Additional information on why the Job was skipped, if available.
     * 
     */
    public String skipMessage() {
        return this.skipMessage;
    }
    /**
     * @return The current state of the Job.
     * 
     */
    public String state() {
        return this.state;
    }
    /**
     * @return A verify Job.
     * 
     */
    public VerifyJobResponse verifyJob() {
        return this.verifyJob;
    }

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

    public static Builder builder(JobResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private AdvanceChildRolloutJobResponse advanceChildRolloutJob;
        private CreateChildRolloutJobResponse createChildRolloutJob;
        private DeployJobResponse deployJob;
        private String jobRun;
        private String skipMessage;
        private String state;
        private VerifyJobResponse verifyJob;
        public Builder() {}
        public Builder(JobResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.advanceChildRolloutJob = defaults.advanceChildRolloutJob;
    	      this.createChildRolloutJob = defaults.createChildRolloutJob;
    	      this.deployJob = defaults.deployJob;
    	      this.jobRun = defaults.jobRun;
    	      this.skipMessage = defaults.skipMessage;
    	      this.state = defaults.state;
    	      this.verifyJob = defaults.verifyJob;
        }

        @CustomType.Setter
        public Builder advanceChildRolloutJob(AdvanceChildRolloutJobResponse advanceChildRolloutJob) {
            this.advanceChildRolloutJob = Objects.requireNonNull(advanceChildRolloutJob);
            return this;
        }
        @CustomType.Setter
        public Builder createChildRolloutJob(CreateChildRolloutJobResponse createChildRolloutJob) {
            this.createChildRolloutJob = Objects.requireNonNull(createChildRolloutJob);
            return this;
        }
        @CustomType.Setter
        public Builder deployJob(DeployJobResponse deployJob) {
            this.deployJob = Objects.requireNonNull(deployJob);
            return this;
        }
        @CustomType.Setter
        public Builder jobRun(String jobRun) {
            this.jobRun = Objects.requireNonNull(jobRun);
            return this;
        }
        @CustomType.Setter
        public Builder skipMessage(String skipMessage) {
            this.skipMessage = Objects.requireNonNull(skipMessage);
            return this;
        }
        @CustomType.Setter
        public Builder state(String state) {
            this.state = Objects.requireNonNull(state);
            return this;
        }
        @CustomType.Setter
        public Builder verifyJob(VerifyJobResponse verifyJob) {
            this.verifyJob = Objects.requireNonNull(verifyJob);
            return this;
        }
        public JobResponse build() {
            final var o = new JobResponse();
            o.advanceChildRolloutJob = advanceChildRolloutJob;
            o.createChildRolloutJob = createChildRolloutJob;
            o.deployJob = deployJob;
            o.jobRun = jobRun;
            o.skipMessage = skipMessage;
            o.state = state;
            o.verifyJob = verifyJob;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy