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

com.pulumi.azurenative.automation.HybridRunbookWorkerGroupArgs 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.azurenative.automation;

import com.pulumi.azurenative.automation.inputs.RunAsCredentialAssociationPropertyArgs;
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 HybridRunbookWorkerGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final HybridRunbookWorkerGroupArgs Empty = new HybridRunbookWorkerGroupArgs();

    /**
     * The name of the automation account.
     * 
     */
    @Import(name="automationAccountName", required=true)
    private Output automationAccountName;

    /**
     * @return The name of the automation account.
     * 
     */
    public Output automationAccountName() {
        return this.automationAccountName;
    }

    /**
     * Sets the credential of a worker group.
     * 
     */
    @Import(name="credential")
    private @Nullable Output credential;

    /**
     * @return Sets the credential of a worker group.
     * 
     */
    public Optional> credential() {
        return Optional.ofNullable(this.credential);
    }

    /**
     * The hybrid runbook worker group name
     * 
     */
    @Import(name="hybridRunbookWorkerGroupName")
    private @Nullable Output hybridRunbookWorkerGroupName;

    /**
     * @return The hybrid runbook worker group name
     * 
     */
    public Optional> hybridRunbookWorkerGroupName() {
        return Optional.ofNullable(this.hybridRunbookWorkerGroupName);
    }

    /**
     * Gets or sets the name of the resource.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Gets or sets the name of the resource.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Name of an Azure Resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of an Azure Resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private HybridRunbookWorkerGroupArgs() {}

    private HybridRunbookWorkerGroupArgs(HybridRunbookWorkerGroupArgs $) {
        this.automationAccountName = $.automationAccountName;
        this.credential = $.credential;
        this.hybridRunbookWorkerGroupName = $.hybridRunbookWorkerGroupName;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private HybridRunbookWorkerGroupArgs $;

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

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

        /**
         * @param automationAccountName The name of the automation account.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountName(Output automationAccountName) {
            $.automationAccountName = automationAccountName;
            return this;
        }

        /**
         * @param automationAccountName The name of the automation account.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountName(String automationAccountName) {
            return automationAccountName(Output.of(automationAccountName));
        }

        /**
         * @param credential Sets the credential of a worker group.
         * 
         * @return builder
         * 
         */
        public Builder credential(@Nullable Output credential) {
            $.credential = credential;
            return this;
        }

        /**
         * @param credential Sets the credential of a worker group.
         * 
         * @return builder
         * 
         */
        public Builder credential(RunAsCredentialAssociationPropertyArgs credential) {
            return credential(Output.of(credential));
        }

        /**
         * @param hybridRunbookWorkerGroupName The hybrid runbook worker group name
         * 
         * @return builder
         * 
         */
        public Builder hybridRunbookWorkerGroupName(@Nullable Output hybridRunbookWorkerGroupName) {
            $.hybridRunbookWorkerGroupName = hybridRunbookWorkerGroupName;
            return this;
        }

        /**
         * @param hybridRunbookWorkerGroupName The hybrid runbook worker group name
         * 
         * @return builder
         * 
         */
        public Builder hybridRunbookWorkerGroupName(String hybridRunbookWorkerGroupName) {
            return hybridRunbookWorkerGroupName(Output.of(hybridRunbookWorkerGroupName));
        }

        /**
         * @param name Gets or sets the name of the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Gets or sets the name of the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName Name of an Azure Resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of an Azure Resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy