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

com.pulumi.azurenative.containerregistry.outputs.GetTaskRunResult Maven / Gradle / Ivy

There is a newer version: 2.89.2
Show 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.containerregistry.outputs;

import com.pulumi.azurenative.containerregistry.outputs.DockerBuildRequestResponse;
import com.pulumi.azurenative.containerregistry.outputs.EncodedTaskRunRequestResponse;
import com.pulumi.azurenative.containerregistry.outputs.FileTaskRunRequestResponse;
import com.pulumi.azurenative.containerregistry.outputs.IdentityPropertiesResponse;
import com.pulumi.azurenative.containerregistry.outputs.RunResponse;
import com.pulumi.azurenative.containerregistry.outputs.SystemDataResponse;
import com.pulumi.azurenative.containerregistry.outputs.TaskRunRequestResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetTaskRunResult {
    /**
     * @return How the run should be forced to rerun even if the run request configuration has not changed
     * 
     */
    private @Nullable String forceUpdateTag;
    /**
     * @return The resource ID.
     * 
     */
    private String id;
    /**
     * @return Identity for the resource.
     * 
     */
    private @Nullable IdentityPropertiesResponse identity;
    /**
     * @return The location of the resource
     * 
     */
    private @Nullable String location;
    /**
     * @return The name of the resource.
     * 
     */
    private String name;
    /**
     * @return The provisioning state of this task run
     * 
     */
    private String provisioningState;
    /**
     * @return The request (parameters) for the run
     * 
     */
    private @Nullable Object runRequest;
    /**
     * @return The result of this task run
     * 
     */
    private RunResponse runResult;
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The type of the resource.
     * 
     */
    private String type;

    private GetTaskRunResult() {}
    /**
     * @return How the run should be forced to rerun even if the run request configuration has not changed
     * 
     */
    public Optional forceUpdateTag() {
        return Optional.ofNullable(this.forceUpdateTag);
    }
    /**
     * @return The resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Identity for the resource.
     * 
     */
    public Optional identity() {
        return Optional.ofNullable(this.identity);
    }
    /**
     * @return The location of the resource
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return The name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The provisioning state of this task run
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The request (parameters) for the run
     * 
     */
    public Optional runRequest() {
        return Optional.ofNullable(this.runRequest);
    }
    /**
     * @return The result of this task run
     * 
     */
    public RunResponse runResult() {
        return this.runResult;
    }
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetTaskRunResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String forceUpdateTag;
        private String id;
        private @Nullable IdentityPropertiesResponse identity;
        private @Nullable String location;
        private String name;
        private String provisioningState;
        private @Nullable Object runRequest;
        private RunResponse runResult;
        private SystemDataResponse systemData;
        private String type;
        public Builder() {}
        public Builder(GetTaskRunResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.forceUpdateTag = defaults.forceUpdateTag;
    	      this.id = defaults.id;
    	      this.identity = defaults.identity;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.runRequest = defaults.runRequest;
    	      this.runResult = defaults.runResult;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder forceUpdateTag(@Nullable String forceUpdateTag) {

            this.forceUpdateTag = forceUpdateTag;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetTaskRunResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder identity(@Nullable IdentityPropertiesResponse identity) {

            this.identity = identity;
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetTaskRunResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetTaskRunResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder runRequest(@Nullable Object runRequest) {

            this.runRequest = runRequest;
            return this;
        }
        @CustomType.Setter
        public Builder runResult(RunResponse runResult) {
            if (runResult == null) {
              throw new MissingRequiredPropertyException("GetTaskRunResult", "runResult");
            }
            this.runResult = runResult;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetTaskRunResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetTaskRunResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetTaskRunResult build() {
            final var _resultValue = new GetTaskRunResult();
            _resultValue.forceUpdateTag = forceUpdateTag;
            _resultValue.id = id;
            _resultValue.identity = identity;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.runRequest = runRequest;
            _resultValue.runResult = runResult;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}