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

com.pulumi.kubernetes.storage.v1alpha1.inputs.VolumeErrorArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
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.kubernetes.storage.v1alpha1.inputs;

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


/**
 * VolumeError captures an error encountered during a volume operation.
 * 
 */
public final class VolumeErrorArgs extends com.pulumi.resources.ResourceArgs {

    public static final VolumeErrorArgs Empty = new VolumeErrorArgs();

    /**
     * String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information.
     * 
     */
    @Import(name="message")
    private @Nullable Output message;

    /**
     * @return String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information.
     * 
     */
    public Optional> message() {
        return Optional.ofNullable(this.message);
    }

    /**
     * Time the error was encountered.
     * 
     */
    @Import(name="time")
    private @Nullable Output time;

    /**
     * @return Time the error was encountered.
     * 
     */
    public Optional> time() {
        return Optional.ofNullable(this.time);
    }

    private VolumeErrorArgs() {}

    private VolumeErrorArgs(VolumeErrorArgs $) {
        this.message = $.message;
        this.time = $.time;
    }

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

    public static final class Builder {
        private VolumeErrorArgs $;

        public Builder() {
            $ = new VolumeErrorArgs();
        }

        public Builder(VolumeErrorArgs defaults) {
            $ = new VolumeErrorArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param message String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information.
         * 
         * @return builder
         * 
         */
        public Builder message(@Nullable Output message) {
            $.message = message;
            return this;
        }

        /**
         * @param message String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information.
         * 
         * @return builder
         * 
         */
        public Builder message(String message) {
            return message(Output.of(message));
        }

        /**
         * @param time Time the error was encountered.
         * 
         * @return builder
         * 
         */
        public Builder time(@Nullable Output time) {
            $.time = time;
            return this;
        }

        /**
         * @param time Time the error was encountered.
         * 
         * @return builder
         * 
         */
        public Builder time(String time) {
            return time(Output.of(time));
        }

        public VolumeErrorArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy