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

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

There is a newer version: 2.82.0
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.AgentPropertiesResponse;
import com.pulumi.azurenative.containerregistry.outputs.CredentialsResponse;
import com.pulumi.azurenative.containerregistry.outputs.DockerBuildStepResponse;
import com.pulumi.azurenative.containerregistry.outputs.EncodedTaskStepResponse;
import com.pulumi.azurenative.containerregistry.outputs.FileTaskStepResponse;
import com.pulumi.azurenative.containerregistry.outputs.IdentityPropertiesResponse;
import com.pulumi.azurenative.containerregistry.outputs.PlatformPropertiesResponse;
import com.pulumi.azurenative.containerregistry.outputs.SystemDataResponse;
import com.pulumi.azurenative.containerregistry.outputs.TriggerPropertiesResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ListTaskDetailsResult {
    /**
     * @return The machine configuration of the run agent.
     * 
     */
    private @Nullable AgentPropertiesResponse agentConfiguration;
    /**
     * @return The dedicated agent pool for the task.
     * 
     */
    private @Nullable String agentPoolName;
    /**
     * @return The creation date of task.
     * 
     */
    private String creationDate;
    /**
     * @return The properties that describes a set of credentials that will be used when this run is invoked.
     * 
     */
    private @Nullable CredentialsResponse credentials;
    /**
     * @return The resource ID.
     * 
     */
    private String id;
    /**
     * @return Identity for the resource.
     * 
     */
    private @Nullable IdentityPropertiesResponse identity;
    /**
     * @return The value of this property indicates whether the task resource is system task or not.
     * 
     */
    private @Nullable Boolean isSystemTask;
    /**
     * @return The location of the resource. This cannot be changed after the resource is created.
     * 
     */
    private String location;
    /**
     * @return The template that describes the repository and tag information for run log artifact.
     * 
     */
    private @Nullable String logTemplate;
    /**
     * @return The name of the resource.
     * 
     */
    private String name;
    /**
     * @return The platform properties against which the run has to happen.
     * 
     */
    private @Nullable PlatformPropertiesResponse platform;
    /**
     * @return The provisioning state of the task.
     * 
     */
    private String provisioningState;
    /**
     * @return The current status of task.
     * 
     */
    private @Nullable String status;
    /**
     * @return The properties of a task step.
     * 
     */
    private @Nullable Object step;
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The tags of the resource.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Run timeout in seconds.
     * 
     */
    private @Nullable Integer timeout;
    /**
     * @return The properties that describe all triggers for the task.
     * 
     */
    private @Nullable TriggerPropertiesResponse trigger;
    /**
     * @return The type of the resource.
     * 
     */
    private String type;

    private ListTaskDetailsResult() {}
    /**
     * @return The machine configuration of the run agent.
     * 
     */
    public Optional agentConfiguration() {
        return Optional.ofNullable(this.agentConfiguration);
    }
    /**
     * @return The dedicated agent pool for the task.
     * 
     */
    public Optional agentPoolName() {
        return Optional.ofNullable(this.agentPoolName);
    }
    /**
     * @return The creation date of task.
     * 
     */
    public String creationDate() {
        return this.creationDate;
    }
    /**
     * @return The properties that describes a set of credentials that will be used when this run is invoked.
     * 
     */
    public Optional credentials() {
        return Optional.ofNullable(this.credentials);
    }
    /**
     * @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 value of this property indicates whether the task resource is system task or not.
     * 
     */
    public Optional isSystemTask() {
        return Optional.ofNullable(this.isSystemTask);
    }
    /**
     * @return The location of the resource. This cannot be changed after the resource is created.
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return The template that describes the repository and tag information for run log artifact.
     * 
     */
    public Optional logTemplate() {
        return Optional.ofNullable(this.logTemplate);
    }
    /**
     * @return The name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The platform properties against which the run has to happen.
     * 
     */
    public Optional platform() {
        return Optional.ofNullable(this.platform);
    }
    /**
     * @return The provisioning state of the task.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The current status of task.
     * 
     */
    public Optional status() {
        return Optional.ofNullable(this.status);
    }
    /**
     * @return The properties of a task step.
     * 
     */
    public Optional step() {
        return Optional.ofNullable(this.step);
    }
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The tags of the resource.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Run timeout in seconds.
     * 
     */
    public Optional timeout() {
        return Optional.ofNullable(this.timeout);
    }
    /**
     * @return The properties that describe all triggers for the task.
     * 
     */
    public Optional trigger() {
        return Optional.ofNullable(this.trigger);
    }
    /**
     * @return The type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(ListTaskDetailsResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable AgentPropertiesResponse agentConfiguration;
        private @Nullable String agentPoolName;
        private String creationDate;
        private @Nullable CredentialsResponse credentials;
        private String id;
        private @Nullable IdentityPropertiesResponse identity;
        private @Nullable Boolean isSystemTask;
        private String location;
        private @Nullable String logTemplate;
        private String name;
        private @Nullable PlatformPropertiesResponse platform;
        private String provisioningState;
        private @Nullable String status;
        private @Nullable Object step;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private @Nullable Integer timeout;
        private @Nullable TriggerPropertiesResponse trigger;
        private String type;
        public Builder() {}
        public Builder(ListTaskDetailsResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.agentConfiguration = defaults.agentConfiguration;
    	      this.agentPoolName = defaults.agentPoolName;
    	      this.creationDate = defaults.creationDate;
    	      this.credentials = defaults.credentials;
    	      this.id = defaults.id;
    	      this.identity = defaults.identity;
    	      this.isSystemTask = defaults.isSystemTask;
    	      this.location = defaults.location;
    	      this.logTemplate = defaults.logTemplate;
    	      this.name = defaults.name;
    	      this.platform = defaults.platform;
    	      this.provisioningState = defaults.provisioningState;
    	      this.status = defaults.status;
    	      this.step = defaults.step;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.timeout = defaults.timeout;
    	      this.trigger = defaults.trigger;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder agentConfiguration(@Nullable AgentPropertiesResponse agentConfiguration) {

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

            this.agentPoolName = agentPoolName;
            return this;
        }
        @CustomType.Setter
        public Builder creationDate(String creationDate) {
            if (creationDate == null) {
              throw new MissingRequiredPropertyException("ListTaskDetailsResult", "creationDate");
            }
            this.creationDate = creationDate;
            return this;
        }
        @CustomType.Setter
        public Builder credentials(@Nullable CredentialsResponse credentials) {

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

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

            this.isSystemTask = isSystemTask;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("ListTaskDetailsResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder logTemplate(@Nullable String logTemplate) {

            this.logTemplate = logTemplate;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("ListTaskDetailsResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder platform(@Nullable PlatformPropertiesResponse platform) {

            this.platform = platform;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("ListTaskDetailsResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder status(@Nullable String status) {

            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder step(@Nullable Object step) {

            this.step = step;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("ListTaskDetailsResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder timeout(@Nullable Integer timeout) {

            this.timeout = timeout;
            return this;
        }
        @CustomType.Setter
        public Builder trigger(@Nullable TriggerPropertiesResponse trigger) {

            this.trigger = trigger;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("ListTaskDetailsResult", "type");
            }
            this.type = type;
            return this;
        }
        public ListTaskDetailsResult build() {
            final var _resultValue = new ListTaskDetailsResult();
            _resultValue.agentConfiguration = agentConfiguration;
            _resultValue.agentPoolName = agentPoolName;
            _resultValue.creationDate = creationDate;
            _resultValue.credentials = credentials;
            _resultValue.id = id;
            _resultValue.identity = identity;
            _resultValue.isSystemTask = isSystemTask;
            _resultValue.location = location;
            _resultValue.logTemplate = logTemplate;
            _resultValue.name = name;
            _resultValue.platform = platform;
            _resultValue.provisioningState = provisioningState;
            _resultValue.status = status;
            _resultValue.step = step;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.timeout = timeout;
            _resultValue.trigger = trigger;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}