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

com.pulumi.f5bigip.sys.NtpArgs 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.f5bigip.sys;

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


public final class NtpArgs extends com.pulumi.resources.ResourceArgs {

    public static final NtpArgs Empty = new NtpArgs();

    /**
     * User defined description.
     * 
     */
    @Import(name="description", required=true)
    private Output description;

    /**
     * @return User defined description.
     * 
     */
    public Output description() {
        return this.description;
    }

    /**
     * Specifies the time servers that the system uses to update the system time.
     * 
     */
    @Import(name="servers", required=true)
    private Output> servers;

    /**
     * @return Specifies the time servers that the system uses to update the system time.
     * 
     */
    public Output> servers() {
        return this.servers;
    }

    /**
     * Specifies the time zone that you want to use for the system time.
     * 
     */
    @Import(name="timezone")
    private @Nullable Output timezone;

    /**
     * @return Specifies the time zone that you want to use for the system time.
     * 
     */
    public Optional> timezone() {
        return Optional.ofNullable(this.timezone);
    }

    private NtpArgs() {}

    private NtpArgs(NtpArgs $) {
        this.description = $.description;
        this.servers = $.servers;
        this.timezone = $.timezone;
    }

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

    public static final class Builder {
        private NtpArgs $;

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

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

        /**
         * @param description User defined description.
         * 
         * @return builder
         * 
         */
        public Builder description(Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description User defined description.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param servers Specifies the time servers that the system uses to update the system time.
         * 
         * @return builder
         * 
         */
        public Builder servers(Output> servers) {
            $.servers = servers;
            return this;
        }

        /**
         * @param servers Specifies the time servers that the system uses to update the system time.
         * 
         * @return builder
         * 
         */
        public Builder servers(List servers) {
            return servers(Output.of(servers));
        }

        /**
         * @param servers Specifies the time servers that the system uses to update the system time.
         * 
         * @return builder
         * 
         */
        public Builder servers(String... servers) {
            return servers(List.of(servers));
        }

        /**
         * @param timezone Specifies the time zone that you want to use for the system time.
         * 
         * @return builder
         * 
         */
        public Builder timezone(@Nullable Output timezone) {
            $.timezone = timezone;
            return this;
        }

        /**
         * @param timezone Specifies the time zone that you want to use for the system time.
         * 
         * @return builder
         * 
         */
        public Builder timezone(String timezone) {
            return timezone(Output.of(timezone));
        }

        public NtpArgs build() {
            if ($.description == null) {
                throw new MissingRequiredPropertyException("NtpArgs", "description");
            }
            if ($.servers == null) {
                throw new MissingRequiredPropertyException("NtpArgs", "servers");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy