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

com.pulumi.azurenative.storagemover.AgentArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.storagemover;

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 AgentArgs extends com.pulumi.resources.ResourceArgs {

    public static final AgentArgs Empty = new AgentArgs();

    /**
     * The name of the Agent resource.
     * 
     */
    @Import(name="agentName")
    private @Nullable Output agentName;

    /**
     * @return The name of the Agent resource.
     * 
     */
    public Optional> agentName() {
        return Optional.ofNullable(this.agentName);
    }

    /**
     * The fully qualified resource ID of the Hybrid Compute resource for the Agent.
     * 
     */
    @Import(name="arcResourceId", required=true)
    private Output arcResourceId;

    /**
     * @return The fully qualified resource ID of the Hybrid Compute resource for the Agent.
     * 
     */
    public Output arcResourceId() {
        return this.arcResourceId;
    }

    /**
     * The VM UUID of the Hybrid Compute resource for the Agent.
     * 
     */
    @Import(name="arcVmUuid", required=true)
    private Output arcVmUuid;

    /**
     * @return The VM UUID of the Hybrid Compute resource for the Agent.
     * 
     */
    public Output arcVmUuid() {
        return this.arcVmUuid;
    }

    /**
     * A description for the Agent.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description for the Agent.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

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

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the Storage Mover resource.
     * 
     */
    @Import(name="storageMoverName", required=true)
    private Output storageMoverName;

    /**
     * @return The name of the Storage Mover resource.
     * 
     */
    public Output storageMoverName() {
        return this.storageMoverName;
    }

    private AgentArgs() {}

    private AgentArgs(AgentArgs $) {
        this.agentName = $.agentName;
        this.arcResourceId = $.arcResourceId;
        this.arcVmUuid = $.arcVmUuid;
        this.description = $.description;
        this.resourceGroupName = $.resourceGroupName;
        this.storageMoverName = $.storageMoverName;
    }

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

    public static final class Builder {
        private AgentArgs $;

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

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

        /**
         * @param agentName The name of the Agent resource.
         * 
         * @return builder
         * 
         */
        public Builder agentName(@Nullable Output agentName) {
            $.agentName = agentName;
            return this;
        }

        /**
         * @param agentName The name of the Agent resource.
         * 
         * @return builder
         * 
         */
        public Builder agentName(String agentName) {
            return agentName(Output.of(agentName));
        }

        /**
         * @param arcResourceId The fully qualified resource ID of the Hybrid Compute resource for the Agent.
         * 
         * @return builder
         * 
         */
        public Builder arcResourceId(Output arcResourceId) {
            $.arcResourceId = arcResourceId;
            return this;
        }

        /**
         * @param arcResourceId The fully qualified resource ID of the Hybrid Compute resource for the Agent.
         * 
         * @return builder
         * 
         */
        public Builder arcResourceId(String arcResourceId) {
            return arcResourceId(Output.of(arcResourceId));
        }

        /**
         * @param arcVmUuid The VM UUID of the Hybrid Compute resource for the Agent.
         * 
         * @return builder
         * 
         */
        public Builder arcVmUuid(Output arcVmUuid) {
            $.arcVmUuid = arcVmUuid;
            return this;
        }

        /**
         * @param arcVmUuid The VM UUID of the Hybrid Compute resource for the Agent.
         * 
         * @return builder
         * 
         */
        public Builder arcVmUuid(String arcVmUuid) {
            return arcVmUuid(Output.of(arcVmUuid));
        }

        /**
         * @param description A description for the Agent.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description for the Agent.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

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

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param storageMoverName The name of the Storage Mover resource.
         * 
         * @return builder
         * 
         */
        public Builder storageMoverName(Output storageMoverName) {
            $.storageMoverName = storageMoverName;
            return this;
        }

        /**
         * @param storageMoverName The name of the Storage Mover resource.
         * 
         * @return builder
         * 
         */
        public Builder storageMoverName(String storageMoverName) {
            return storageMoverName(Output.of(storageMoverName));
        }

        public AgentArgs build() {
            if ($.arcResourceId == null) {
                throw new MissingRequiredPropertyException("AgentArgs", "arcResourceId");
            }
            if ($.arcVmUuid == null) {
                throw new MissingRequiredPropertyException("AgentArgs", "arcVmUuid");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AgentArgs", "resourceGroupName");
            }
            if ($.storageMoverName == null) {
                throw new MissingRequiredPropertyException("AgentArgs", "storageMoverName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy