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

com.pulumi.azurenative.servicefabricmesh.outputs.ContainerStateResponse 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.servicefabricmesh.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ContainerStateResponse {
    /**
     * @return Human-readable status of this state.
     * 
     */
    private @Nullable String detailStatus;
    /**
     * @return The container exit code.
     * 
     */
    private @Nullable String exitCode;
    /**
     * @return Date/time when the container state finished.
     * 
     */
    private @Nullable String finishTime;
    /**
     * @return Date/time when the container state started.
     * 
     */
    private @Nullable String startTime;
    /**
     * @return The state of this container
     * 
     */
    private @Nullable String state;

    private ContainerStateResponse() {}
    /**
     * @return Human-readable status of this state.
     * 
     */
    public Optional detailStatus() {
        return Optional.ofNullable(this.detailStatus);
    }
    /**
     * @return The container exit code.
     * 
     */
    public Optional exitCode() {
        return Optional.ofNullable(this.exitCode);
    }
    /**
     * @return Date/time when the container state finished.
     * 
     */
    public Optional finishTime() {
        return Optional.ofNullable(this.finishTime);
    }
    /**
     * @return Date/time when the container state started.
     * 
     */
    public Optional startTime() {
        return Optional.ofNullable(this.startTime);
    }
    /**
     * @return The state of this container
     * 
     */
    public Optional state() {
        return Optional.ofNullable(this.state);
    }

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

    public static Builder builder(ContainerStateResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String detailStatus;
        private @Nullable String exitCode;
        private @Nullable String finishTime;
        private @Nullable String startTime;
        private @Nullable String state;
        public Builder() {}
        public Builder(ContainerStateResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.detailStatus = defaults.detailStatus;
    	      this.exitCode = defaults.exitCode;
    	      this.finishTime = defaults.finishTime;
    	      this.startTime = defaults.startTime;
    	      this.state = defaults.state;
        }

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

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

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

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

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

            this.state = state;
            return this;
        }
        public ContainerStateResponse build() {
            final var _resultValue = new ContainerStateResponse();
            _resultValue.detailStatus = detailStatus;
            _resultValue.exitCode = exitCode;
            _resultValue.finishTime = finishTime;
            _resultValue.startTime = startTime;
            _resultValue.state = state;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy