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

com.pulumi.azurenative.compute.inputs.GetDiskPlainArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.compute.inputs;

import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final GetDiskPlainArgs Empty = new GetDiskPlainArgs();

    /**
     * The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
     * 
     */
    @Import(name="diskName", required=true)
    private String diskName;

    /**
     * @return The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
     * 
     */
    public String diskName() {
        return this.diskName;
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private String resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public String resourceGroupName() {
        return this.resourceGroupName;
    }

    private GetDiskPlainArgs() {}

    private GetDiskPlainArgs(GetDiskPlainArgs $) {
        this.diskName = $.diskName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private GetDiskPlainArgs $;

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

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

        /**
         * @param diskName The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
         * 
         * @return builder
         * 
         */
        public Builder diskName(String diskName) {
            $.diskName = diskName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        public GetDiskPlainArgs build() {
            if ($.diskName == null) {
                throw new MissingRequiredPropertyException("GetDiskPlainArgs", "diskName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetDiskPlainArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy