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

com.pulumi.azurenative.operationsmanagement.ManagementAssociationArgs 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.operationsmanagement;

import com.pulumi.azurenative.operationsmanagement.inputs.ManagementAssociationPropertiesArgs;
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 ManagementAssociationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ManagementAssociationArgs Empty = new ManagementAssociationArgs();

    /**
     * Resource location
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * User ManagementAssociation Name.
     * 
     */
    @Import(name="managementAssociationName")
    private @Nullable Output managementAssociationName;

    /**
     * @return User ManagementAssociation Name.
     * 
     */
    public Optional> managementAssociationName() {
        return Optional.ofNullable(this.managementAssociationName);
    }

    /**
     * Properties for ManagementAssociation object supported by the OperationsManagement resource provider.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Properties for ManagementAssociation object supported by the OperationsManagement resource provider.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * Provider name for the parent resource.
     * 
     */
    @Import(name="providerName", required=true)
    private Output providerName;

    /**
     * @return Provider name for the parent resource.
     * 
     */
    public Output providerName() {
        return this.providerName;
    }

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

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

    /**
     * Parent resource name.
     * 
     */
    @Import(name="resourceName", required=true)
    private Output resourceName;

    /**
     * @return Parent resource name.
     * 
     */
    public Output resourceName() {
        return this.resourceName;
    }

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

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

    private ManagementAssociationArgs() {}

    private ManagementAssociationArgs(ManagementAssociationArgs $) {
        this.location = $.location;
        this.managementAssociationName = $.managementAssociationName;
        this.properties = $.properties;
        this.providerName = $.providerName;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceName = $.resourceName;
        this.resourceType = $.resourceType;
    }

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

    public static final class Builder {
        private ManagementAssociationArgs $;

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

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

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

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

        /**
         * @param managementAssociationName User ManagementAssociation Name.
         * 
         * @return builder
         * 
         */
        public Builder managementAssociationName(@Nullable Output managementAssociationName) {
            $.managementAssociationName = managementAssociationName;
            return this;
        }

        /**
         * @param managementAssociationName User ManagementAssociation Name.
         * 
         * @return builder
         * 
         */
        public Builder managementAssociationName(String managementAssociationName) {
            return managementAssociationName(Output.of(managementAssociationName));
        }

        /**
         * @param properties Properties for ManagementAssociation object supported by the OperationsManagement resource provider.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Properties for ManagementAssociation object supported by the OperationsManagement resource provider.
         * 
         * @return builder
         * 
         */
        public Builder properties(ManagementAssociationPropertiesArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param providerName Provider name for the parent resource.
         * 
         * @return builder
         * 
         */
        public Builder providerName(Output providerName) {
            $.providerName = providerName;
            return this;
        }

        /**
         * @param providerName Provider name for the parent resource.
         * 
         * @return builder
         * 
         */
        public Builder providerName(String providerName) {
            return providerName(Output.of(providerName));
        }

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

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

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

        /**
         * @param resourceName Parent resource name.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(String resourceName) {
            return resourceName(Output.of(resourceName));
        }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy