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

com.pulumi.azurenative.operationalinsights.inputs.GetMachineGroupArgs Maven / Gradle / Ivy

The 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.azurenative.operationalinsights.inputs;

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


public final class GetMachineGroupArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetMachineGroupArgs Empty = new GetMachineGroupArgs();

    /**
     * UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
     * 
     */
    @Import(name="endTime")
    private @Nullable Output endTime;

    /**
     * @return UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
     * 
     */
    public Optional> endTime() {
        return Optional.ofNullable(this.endTime);
    }

    /**
     * Machine Group resource name.
     * 
     */
    @Import(name="machineGroupName", required=true)
    private Output machineGroupName;

    /**
     * @return Machine Group resource name.
     * 
     */
    public Output machineGroupName() {
        return this.machineGroupName;
    }

    /**
     * Resource group name within the specified subscriptionId.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Resource group name within the specified subscriptionId.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m
     * 
     */
    @Import(name="startTime")
    private @Nullable Output startTime;

    /**
     * @return UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m
     * 
     */
    public Optional> startTime() {
        return Optional.ofNullable(this.startTime);
    }

    /**
     * OMS workspace containing the resources of interest.
     * 
     */
    @Import(name="workspaceName", required=true)
    private Output workspaceName;

    /**
     * @return OMS workspace containing the resources of interest.
     * 
     */
    public Output workspaceName() {
        return this.workspaceName;
    }

    private GetMachineGroupArgs() {}

    private GetMachineGroupArgs(GetMachineGroupArgs $) {
        this.endTime = $.endTime;
        this.machineGroupName = $.machineGroupName;
        this.resourceGroupName = $.resourceGroupName;
        this.startTime = $.startTime;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private GetMachineGroupArgs $;

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

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

        /**
         * @param endTime UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
         * 
         * @return builder
         * 
         */
        public Builder endTime(@Nullable Output endTime) {
            $.endTime = endTime;
            return this;
        }

        /**
         * @param endTime UTC date and time specifying the end time of an interval. When not specified the service uses DateTime.UtcNow
         * 
         * @return builder
         * 
         */
        public Builder endTime(String endTime) {
            return endTime(Output.of(endTime));
        }

        /**
         * @param machineGroupName Machine Group resource name.
         * 
         * @return builder
         * 
         */
        public Builder machineGroupName(Output machineGroupName) {
            $.machineGroupName = machineGroupName;
            return this;
        }

        /**
         * @param machineGroupName Machine Group resource name.
         * 
         * @return builder
         * 
         */
        public Builder machineGroupName(String machineGroupName) {
            return machineGroupName(Output.of(machineGroupName));
        }

        /**
         * @param resourceGroupName Resource group name within the specified subscriptionId.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Resource group name within the specified subscriptionId.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param startTime UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m
         * 
         * @return builder
         * 
         */
        public Builder startTime(@Nullable Output startTime) {
            $.startTime = startTime;
            return this;
        }

        /**
         * @param startTime UTC date and time specifying the start time of an interval. When not specified the service uses DateTime.UtcNow - 10m
         * 
         * @return builder
         * 
         */
        public Builder startTime(String startTime) {
            return startTime(Output.of(startTime));
        }

        /**
         * @param workspaceName OMS workspace containing the resources of interest.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(Output workspaceName) {
            $.workspaceName = workspaceName;
            return this;
        }

        /**
         * @param workspaceName OMS workspace containing the resources of interest.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(String workspaceName) {
            return workspaceName(Output.of(workspaceName));
        }

        public GetMachineGroupArgs build() {
            if ($.machineGroupName == null) {
                throw new MissingRequiredPropertyException("GetMachineGroupArgs", "machineGroupName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetMachineGroupArgs", "resourceGroupName");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("GetMachineGroupArgs", "workspaceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy