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

com.pulumi.azurenative.awsconnector.outputs.InstanceStatusDetailsResponse 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.awsconnector.outputs;

import com.pulumi.azurenative.awsconnector.outputs.StatusNameEnumValueResponse;
import com.pulumi.azurenative.awsconnector.outputs.StatusTypeEnumValueResponse;
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 InstanceStatusDetailsResponse {
    /**
     * @return <p>The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.</p>
     * 
     */
    private @Nullable String impairedSince;
    /**
     * @return <p>The type of instance status.</p>
     * 
     */
    private @Nullable StatusNameEnumValueResponse name;
    /**
     * @return <p>The status.</p>
     * 
     */
    private @Nullable StatusTypeEnumValueResponse status;

    private InstanceStatusDetailsResponse() {}
    /**
     * @return <p>The time when a status check failed. For an instance that was launched and impaired, this is the time when the instance was launched.</p>
     * 
     */
    public Optional impairedSince() {
        return Optional.ofNullable(this.impairedSince);
    }
    /**
     * @return <p>The type of instance status.</p>
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return <p>The status.</p>
     * 
     */
    public Optional status() {
        return Optional.ofNullable(this.status);
    }

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

    public static Builder builder(InstanceStatusDetailsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String impairedSince;
        private @Nullable StatusNameEnumValueResponse name;
        private @Nullable StatusTypeEnumValueResponse status;
        public Builder() {}
        public Builder(InstanceStatusDetailsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.impairedSince = defaults.impairedSince;
    	      this.name = defaults.name;
    	      this.status = defaults.status;
        }

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

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

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

            this.status = status;
            return this;
        }
        public InstanceStatusDetailsResponse build() {
            final var _resultValue = new InstanceStatusDetailsResponse();
            _resultValue.impairedSince = impairedSince;
            _resultValue.name = name;
            _resultValue.status = status;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy