// *** 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.gcp.compute.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.compute.inputs.ResourcePolicyInstanceSchedulePolicyVmStartScheduleArgs;
import com.pulumi.gcp.compute.inputs.ResourcePolicyInstanceSchedulePolicyVmStopScheduleArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ResourcePolicyInstanceSchedulePolicyArgs Empty = new ResourcePolicyInstanceSchedulePolicyArgs();

    /**
     * The expiration time of the schedule. The timestamp is an RFC3339 string.
     * 
     */
    @Import(name="expirationTime")
    private @Nullable Output<String> expirationTime;

    /**
     * @return The expiration time of the schedule. The timestamp is an RFC3339 string.
     * 
     */
    public Optional<Output<String>> expirationTime() {
        return Optional.ofNullable(this.expirationTime);
    }

    /**
     * The start time of the schedule. The timestamp is an RFC3339 string.
     * 
     */
    @Import(name="startTime")
    private @Nullable Output<String> startTime;

    /**
     * @return The start time of the schedule. The timestamp is an RFC3339 string.
     * 
     */
    public Optional<Output<String>> startTime() {
        return Optional.ofNullable(this.startTime);
    }

    /**
     * Specifies the time zone to be used in interpreting the schedule. The value of this field must be a time zone name
     * from the tz database: http://en.wikipedia.org/wiki/Tz_database.
     * 
     */
    @Import(name="timeZone", required=true)
    private Output<String> timeZone;

    /**
     * @return Specifies the time zone to be used in interpreting the schedule. The value of this field must be a time zone name
     * from the tz database: http://en.wikipedia.org/wiki/Tz_database.
     * 
     */
    public Output<String> timeZone() {
        return this.timeZone;
    }

    /**
     * Specifies the schedule for starting instances.
     * Structure is documented below.
     * 
     */
    @Import(name="vmStartSchedule")
    private @Nullable Output<ResourcePolicyInstanceSchedulePolicyVmStartScheduleArgs> vmStartSchedule;

    /**
     * @return Specifies the schedule for starting instances.
     * Structure is documented below.
     * 
     */
    public Optional<Output<ResourcePolicyInstanceSchedulePolicyVmStartScheduleArgs>> vmStartSchedule() {
        return Optional.ofNullable(this.vmStartSchedule);
    }

    /**
     * Specifies the schedule for stopping instances.
     * Structure is documented below.
     * 
     */
    @Import(name="vmStopSchedule")
    private @Nullable Output<ResourcePolicyInstanceSchedulePolicyVmStopScheduleArgs> vmStopSchedule;

    /**
     * @return Specifies the schedule for stopping instances.
     * Structure is documented below.
     * 
     */
    public Optional<Output<ResourcePolicyInstanceSchedulePolicyVmStopScheduleArgs>> vmStopSchedule() {
        return Optional.ofNullable(this.vmStopSchedule);
    }

    private ResourcePolicyInstanceSchedulePolicyArgs() {}

    private ResourcePolicyInstanceSchedulePolicyArgs(ResourcePolicyInstanceSchedulePolicyArgs $) {
        this.expirationTime = $.expirationTime;
        this.startTime = $.startTime;
        this.timeZone = $.timeZone;
        this.vmStartSchedule = $.vmStartSchedule;
        this.vmStopSchedule = $.vmStopSchedule;
    }

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

    public static final class Builder {
        private ResourcePolicyInstanceSchedulePolicyArgs $;

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

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

        /**
         * @param expirationTime The expiration time of the schedule. The timestamp is an RFC3339 string.
         * 
         * @return builder
         * 
         */
        public Builder expirationTime(@Nullable Output<String> expirationTime) {
            $.expirationTime = expirationTime;
            return this;
        }

        /**
         * @param expirationTime The expiration time of the schedule. The timestamp is an RFC3339 string.
         * 
         * @return builder
         * 
         */
        public Builder expirationTime(String expirationTime) {
            return expirationTime(Output.of(expirationTime));
        }

        /**
         * @param startTime The start time of the schedule. The timestamp is an RFC3339 string.
         * 
         * @return builder
         * 
         */
        public Builder startTime(@Nullable Output<String> startTime) {
            $.startTime = startTime;
            return this;
        }

        /**
         * @param startTime The start time of the schedule. The timestamp is an RFC3339 string.
         * 
         * @return builder
         * 
         */
        public Builder startTime(String startTime) {
            return startTime(Output.of(startTime));
        }

        /**
         * @param timeZone Specifies the time zone to be used in interpreting the schedule. The value of this field must be a time zone name
         * from the tz database: http://en.wikipedia.org/wiki/Tz_database.
         * 
         * @return builder
         * 
         */
        public Builder timeZone(Output<String> timeZone) {
            $.timeZone = timeZone;
            return this;
        }

        /**
         * @param timeZone Specifies the time zone to be used in interpreting the schedule. The value of this field must be a time zone name
         * from the tz database: http://en.wikipedia.org/wiki/Tz_database.
         * 
         * @return builder
         * 
         */
        public Builder timeZone(String timeZone) {
            return timeZone(Output.of(timeZone));
        }

        /**
         * @param vmStartSchedule Specifies the schedule for starting instances.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder vmStartSchedule(@Nullable Output<ResourcePolicyInstanceSchedulePolicyVmStartScheduleArgs> vmStartSchedule) {
            $.vmStartSchedule = vmStartSchedule;
            return this;
        }

        /**
         * @param vmStartSchedule Specifies the schedule for starting instances.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder vmStartSchedule(ResourcePolicyInstanceSchedulePolicyVmStartScheduleArgs vmStartSchedule) {
            return vmStartSchedule(Output.of(vmStartSchedule));
        }

        /**
         * @param vmStopSchedule Specifies the schedule for stopping instances.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder vmStopSchedule(@Nullable Output<ResourcePolicyInstanceSchedulePolicyVmStopScheduleArgs> vmStopSchedule) {
            $.vmStopSchedule = vmStopSchedule;
            return this;
        }

        /**
         * @param vmStopSchedule Specifies the schedule for stopping instances.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder vmStopSchedule(ResourcePolicyInstanceSchedulePolicyVmStopScheduleArgs vmStopSchedule) {
            return vmStopSchedule(Output.of(vmStopSchedule));
        }

        public ResourcePolicyInstanceSchedulePolicyArgs build() {
            $.timeZone = Objects.requireNonNull($.timeZone, "expected parameter 'timeZone' to be non-null");
            return $;
        }
    }

}
