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

com.pulumi.azurenative.devcenter.outputs.ImageDefinitionBuildTaskResponse 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.azurenative.devcenter.outputs;

import com.pulumi.azurenative.devcenter.outputs.ImageDefinitionBuildTaskResponseParameters;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ImageDefinitionBuildTaskResponse {
    /**
     * @return Display name to help differentiate multiple instances of the same task.
     * 
     */
    private @Nullable String displayName;
    /**
     * @return End time of the task.
     * 
     */
    private String endTime;
    /**
     * @return ID of the task instance.
     * 
     */
    private String id;
    /**
     * @return The URI for retrieving logs for the task execution.
     * 
     */
    private String logUri;
    /**
     * @return The name of the task.
     * 
     */
    private @Nullable String name;
    /**
     * @return Parameters for the task.
     * 
     */
    private @Nullable List parameters;
    /**
     * @return Start time of the task.
     * 
     */
    private String startTime;
    /**
     * @return The status of the task.
     * 
     */
    private String status;

    private ImageDefinitionBuildTaskResponse() {}
    /**
     * @return Display name to help differentiate multiple instances of the same task.
     * 
     */
    public Optional displayName() {
        return Optional.ofNullable(this.displayName);
    }
    /**
     * @return End time of the task.
     * 
     */
    public String endTime() {
        return this.endTime;
    }
    /**
     * @return ID of the task instance.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The URI for retrieving logs for the task execution.
     * 
     */
    public String logUri() {
        return this.logUri;
    }
    /**
     * @return The name of the task.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return Parameters for the task.
     * 
     */
    public List parameters() {
        return this.parameters == null ? List.of() : this.parameters;
    }
    /**
     * @return Start time of the task.
     * 
     */
    public String startTime() {
        return this.startTime;
    }
    /**
     * @return The status of the task.
     * 
     */
    public String status() {
        return this.status;
    }

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

    public static Builder builder(ImageDefinitionBuildTaskResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String displayName;
        private String endTime;
        private String id;
        private String logUri;
        private @Nullable String name;
        private @Nullable List parameters;
        private String startTime;
        private String status;
        public Builder() {}
        public Builder(ImageDefinitionBuildTaskResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.displayName = defaults.displayName;
    	      this.endTime = defaults.endTime;
    	      this.id = defaults.id;
    	      this.logUri = defaults.logUri;
    	      this.name = defaults.name;
    	      this.parameters = defaults.parameters;
    	      this.startTime = defaults.startTime;
    	      this.status = defaults.status;
        }

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

            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder endTime(String endTime) {
            if (endTime == null) {
              throw new MissingRequiredPropertyException("ImageDefinitionBuildTaskResponse", "endTime");
            }
            this.endTime = endTime;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("ImageDefinitionBuildTaskResponse", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder logUri(String logUri) {
            if (logUri == null) {
              throw new MissingRequiredPropertyException("ImageDefinitionBuildTaskResponse", "logUri");
            }
            this.logUri = logUri;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder parameters(@Nullable List parameters) {

            this.parameters = parameters;
            return this;
        }
        public Builder parameters(ImageDefinitionBuildTaskResponseParameters... parameters) {
            return parameters(List.of(parameters));
        }
        @CustomType.Setter
        public Builder startTime(String startTime) {
            if (startTime == null) {
              throw new MissingRequiredPropertyException("ImageDefinitionBuildTaskResponse", "startTime");
            }
            this.startTime = startTime;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("ImageDefinitionBuildTaskResponse", "status");
            }
            this.status = status;
            return this;
        }
        public ImageDefinitionBuildTaskResponse build() {
            final var _resultValue = new ImageDefinitionBuildTaskResponse();
            _resultValue.displayName = displayName;
            _resultValue.endTime = endTime;
            _resultValue.id = id;
            _resultValue.logUri = logUri;
            _resultValue.name = name;
            _resultValue.parameters = parameters;
            _resultValue.startTime = startTime;
            _resultValue.status = status;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy