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

com.pulumi.azurenative.maintenance.ConfigurationAssignmentArgs 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.maintenance;

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

    public static final ConfigurationAssignmentArgs Empty = new ConfigurationAssignmentArgs();

    /**
     * Configuration assignment name
     * 
     */
    @Import(name="configurationAssignmentName")
    private @Nullable Output configurationAssignmentName;

    /**
     * @return Configuration assignment name
     * 
     */
    public Optional> configurationAssignmentName() {
        return Optional.ofNullable(this.configurationAssignmentName);
    }

    /**
     * Location of the resource
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Location of the resource
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The maintenance configuration Id
     * 
     */
    @Import(name="maintenanceConfigurationId")
    private @Nullable Output maintenanceConfigurationId;

    /**
     * @return The maintenance configuration Id
     * 
     */
    public Optional> maintenanceConfigurationId() {
        return Optional.ofNullable(this.maintenanceConfigurationId);
    }

    /**
     * Resource provider name
     * 
     */
    @Import(name="providerName", required=true)
    private Output providerName;

    /**
     * @return Resource provider name
     * 
     */
    public Output providerName() {
        return this.providerName;
    }

    /**
     * Resource group name
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

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

    /**
     * The unique resourceId
     * 
     */
    @Import(name="resourceId")
    private @Nullable Output resourceId;

    /**
     * @return The unique resourceId
     * 
     */
    public Optional> resourceId() {
        return Optional.ofNullable(this.resourceId);
    }

    /**
     * Resource identifier
     * 
     */
    @Import(name="resourceName", required=true)
    private Output resourceName;

    /**
     * @return Resource identifier
     * 
     */
    public Output resourceName() {
        return this.resourceName;
    }

    /**
     * Resource type
     * 
     */
    @Import(name="resourceType", required=true)
    private Output resourceType;

    /**
     * @return Resource type
     * 
     */
    public Output resourceType() {
        return this.resourceType;
    }

    private ConfigurationAssignmentArgs() {}

    private ConfigurationAssignmentArgs(ConfigurationAssignmentArgs $) {
        this.configurationAssignmentName = $.configurationAssignmentName;
        this.location = $.location;
        this.maintenanceConfigurationId = $.maintenanceConfigurationId;
        this.providerName = $.providerName;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceId = $.resourceId;
        this.resourceName = $.resourceName;
        this.resourceType = $.resourceType;
    }

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

    public static final class Builder {
        private ConfigurationAssignmentArgs $;

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

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

        /**
         * @param configurationAssignmentName Configuration assignment name
         * 
         * @return builder
         * 
         */
        public Builder configurationAssignmentName(@Nullable Output configurationAssignmentName) {
            $.configurationAssignmentName = configurationAssignmentName;
            return this;
        }

        /**
         * @param configurationAssignmentName Configuration assignment name
         * 
         * @return builder
         * 
         */
        public Builder configurationAssignmentName(String configurationAssignmentName) {
            return configurationAssignmentName(Output.of(configurationAssignmentName));
        }

        /**
         * @param location Location of the resource
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Location of the resource
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param maintenanceConfigurationId The maintenance configuration Id
         * 
         * @return builder
         * 
         */
        public Builder maintenanceConfigurationId(@Nullable Output maintenanceConfigurationId) {
            $.maintenanceConfigurationId = maintenanceConfigurationId;
            return this;
        }

        /**
         * @param maintenanceConfigurationId The maintenance configuration Id
         * 
         * @return builder
         * 
         */
        public Builder maintenanceConfigurationId(String maintenanceConfigurationId) {
            return maintenanceConfigurationId(Output.of(maintenanceConfigurationId));
        }

        /**
         * @param providerName Resource provider name
         * 
         * @return builder
         * 
         */
        public Builder providerName(Output providerName) {
            $.providerName = providerName;
            return this;
        }

        /**
         * @param providerName Resource provider name
         * 
         * @return builder
         * 
         */
        public Builder providerName(String providerName) {
            return providerName(Output.of(providerName));
        }

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

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

        /**
         * @param resourceId The unique resourceId
         * 
         * @return builder
         * 
         */
        public Builder resourceId(@Nullable Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId The unique resourceId
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        /**
         * @param resourceName Resource identifier
         * 
         * @return builder
         * 
         */
        public Builder resourceName(Output resourceName) {
            $.resourceName = resourceName;
            return this;
        }

        /**
         * @param resourceName Resource identifier
         * 
         * @return builder
         * 
         */
        public Builder resourceName(String resourceName) {
            return resourceName(Output.of(resourceName));
        }

        /**
         * @param resourceType Resource type
         * 
         * @return builder
         * 
         */
        public Builder resourceType(Output resourceType) {
            $.resourceType = resourceType;
            return this;
        }

        /**
         * @param resourceType Resource type
         * 
         * @return builder
         * 
         */
        public Builder resourceType(String resourceType) {
            return resourceType(Output.of(resourceType));
        }

        public ConfigurationAssignmentArgs build() {
            if ($.providerName == null) {
                throw new MissingRequiredPropertyException("ConfigurationAssignmentArgs", "providerName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ConfigurationAssignmentArgs", "resourceGroupName");
            }
            if ($.resourceName == null) {
                throw new MissingRequiredPropertyException("ConfigurationAssignmentArgs", "resourceName");
            }
            if ($.resourceType == null) {
                throw new MissingRequiredPropertyException("ConfigurationAssignmentArgs", "resourceType");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy