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

com.pulumi.azurenative.resources.outputs.ScriptStatusResponse 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.resources.outputs;

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

@CustomType
public final class ScriptStatusResponse {
    /**
     * @return ACI resource Id.
     * 
     */
    private String containerInstanceId;
    /**
     * @return End time of the script execution.
     * 
     */
    private String endTime;
    /**
     * @return Error that is relayed from the script execution.
     * 
     */
    private @Nullable ErrorResponseResponse error;
    /**
     * @return Time the deployment script resource will expire.
     * 
     */
    private String expirationTime;
    /**
     * @return Start time of the script execution.
     * 
     */
    private String startTime;
    /**
     * @return Storage account resource Id.
     * 
     */
    private String storageAccountId;

    private ScriptStatusResponse() {}
    /**
     * @return ACI resource Id.
     * 
     */
    public String containerInstanceId() {
        return this.containerInstanceId;
    }
    /**
     * @return End time of the script execution.
     * 
     */
    public String endTime() {
        return this.endTime;
    }
    /**
     * @return Error that is relayed from the script execution.
     * 
     */
    public Optional error() {
        return Optional.ofNullable(this.error);
    }
    /**
     * @return Time the deployment script resource will expire.
     * 
     */
    public String expirationTime() {
        return this.expirationTime;
    }
    /**
     * @return Start time of the script execution.
     * 
     */
    public String startTime() {
        return this.startTime;
    }
    /**
     * @return Storage account resource Id.
     * 
     */
    public String storageAccountId() {
        return this.storageAccountId;
    }

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

    public static Builder builder(ScriptStatusResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String containerInstanceId;
        private String endTime;
        private @Nullable ErrorResponseResponse error;
        private String expirationTime;
        private String startTime;
        private String storageAccountId;
        public Builder() {}
        public Builder(ScriptStatusResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.containerInstanceId = defaults.containerInstanceId;
    	      this.endTime = defaults.endTime;
    	      this.error = defaults.error;
    	      this.expirationTime = defaults.expirationTime;
    	      this.startTime = defaults.startTime;
    	      this.storageAccountId = defaults.storageAccountId;
        }

        @CustomType.Setter
        public Builder containerInstanceId(String containerInstanceId) {
            if (containerInstanceId == null) {
              throw new MissingRequiredPropertyException("ScriptStatusResponse", "containerInstanceId");
            }
            this.containerInstanceId = containerInstanceId;
            return this;
        }
        @CustomType.Setter
        public Builder endTime(String endTime) {
            if (endTime == null) {
              throw new MissingRequiredPropertyException("ScriptStatusResponse", "endTime");
            }
            this.endTime = endTime;
            return this;
        }
        @CustomType.Setter
        public Builder error(@Nullable ErrorResponseResponse error) {

            this.error = error;
            return this;
        }
        @CustomType.Setter
        public Builder expirationTime(String expirationTime) {
            if (expirationTime == null) {
              throw new MissingRequiredPropertyException("ScriptStatusResponse", "expirationTime");
            }
            this.expirationTime = expirationTime;
            return this;
        }
        @CustomType.Setter
        public Builder startTime(String startTime) {
            if (startTime == null) {
              throw new MissingRequiredPropertyException("ScriptStatusResponse", "startTime");
            }
            this.startTime = startTime;
            return this;
        }
        @CustomType.Setter
        public Builder storageAccountId(String storageAccountId) {
            if (storageAccountId == null) {
              throw new MissingRequiredPropertyException("ScriptStatusResponse", "storageAccountId");
            }
            this.storageAccountId = storageAccountId;
            return this;
        }
        public ScriptStatusResponse build() {
            final var _resultValue = new ScriptStatusResponse();
            _resultValue.containerInstanceId = containerInstanceId;
            _resultValue.endTime = endTime;
            _resultValue.error = error;
            _resultValue.expirationTime = expirationTime;
            _resultValue.startTime = startTime;
            _resultValue.storageAccountId = storageAccountId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy