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

com.pulumi.azurenative.containerservice.inputs.TimeSpanArgs 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.containerservice.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;


/**
 * For example, between 2021-05-25T13:00:00Z and 2021-05-25T14:00:00Z.
 * 
 */
public final class TimeSpanArgs extends com.pulumi.resources.ResourceArgs {

    public static final TimeSpanArgs Empty = new TimeSpanArgs();

    /**
     * The end of a time span
     * 
     */
    @Import(name="end")
    private @Nullable Output end;

    /**
     * @return The end of a time span
     * 
     */
    public Optional> end() {
        return Optional.ofNullable(this.end);
    }

    /**
     * The start of a time span
     * 
     */
    @Import(name="start")
    private @Nullable Output start;

    /**
     * @return The start of a time span
     * 
     */
    public Optional> start() {
        return Optional.ofNullable(this.start);
    }

    private TimeSpanArgs() {}

    private TimeSpanArgs(TimeSpanArgs $) {
        this.end = $.end;
        this.start = $.start;
    }

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

    public static final class Builder {
        private TimeSpanArgs $;

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

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

        /**
         * @param end The end of a time span
         * 
         * @return builder
         * 
         */
        public Builder end(@Nullable Output end) {
            $.end = end;
            return this;
        }

        /**
         * @param end The end of a time span
         * 
         * @return builder
         * 
         */
        public Builder end(String end) {
            return end(Output.of(end));
        }

        /**
         * @param start The start of a time span
         * 
         * @return builder
         * 
         */
        public Builder start(@Nullable Output start) {
            $.start = start;
            return this;
        }

        /**
         * @param start The start of a time span
         * 
         * @return builder
         * 
         */
        public Builder start(String start) {
            return start(Output.of(start));
        }

        public TimeSpanArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy