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

com.pulumi.azurenative.managedservices.RegistrationDefinitionArgs 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.managedservices;

import com.pulumi.azurenative.managedservices.inputs.PlanArgs;
import com.pulumi.azurenative.managedservices.inputs.RegistrationDefinitionPropertiesArgs;
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 RegistrationDefinitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final RegistrationDefinitionArgs Empty = new RegistrationDefinitionArgs();

    /**
     * The details for the Managed Services offer’s plan in Azure Marketplace.
     * 
     */
    @Import(name="plan")
    private @Nullable Output plan;

    /**
     * @return The details for the Managed Services offer’s plan in Azure Marketplace.
     * 
     */
    public Optional> plan() {
        return Optional.ofNullable(this.plan);
    }

    /**
     * The properties of a registration definition.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return The properties of a registration definition.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * The GUID of the registration definition.
     * 
     */
    @Import(name="registrationDefinitionId")
    private @Nullable Output registrationDefinitionId;

    /**
     * @return The GUID of the registration definition.
     * 
     */
    public Optional> registrationDefinitionId() {
        return Optional.ofNullable(this.registrationDefinitionId);
    }

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

    /**
     * @return The scope of the resource.
     * 
     */
    public Output scope() {
        return this.scope;
    }

    private RegistrationDefinitionArgs() {}

    private RegistrationDefinitionArgs(RegistrationDefinitionArgs $) {
        this.plan = $.plan;
        this.properties = $.properties;
        this.registrationDefinitionId = $.registrationDefinitionId;
        this.scope = $.scope;
    }

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

    public static final class Builder {
        private RegistrationDefinitionArgs $;

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

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

        /**
         * @param plan The details for the Managed Services offer’s plan in Azure Marketplace.
         * 
         * @return builder
         * 
         */
        public Builder plan(@Nullable Output plan) {
            $.plan = plan;
            return this;
        }

        /**
         * @param plan The details for the Managed Services offer’s plan in Azure Marketplace.
         * 
         * @return builder
         * 
         */
        public Builder plan(PlanArgs plan) {
            return plan(Output.of(plan));
        }

        /**
         * @param properties The properties of a registration definition.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties The properties of a registration definition.
         * 
         * @return builder
         * 
         */
        public Builder properties(RegistrationDefinitionPropertiesArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param registrationDefinitionId The GUID of the registration definition.
         * 
         * @return builder
         * 
         */
        public Builder registrationDefinitionId(@Nullable Output registrationDefinitionId) {
            $.registrationDefinitionId = registrationDefinitionId;
            return this;
        }

        /**
         * @param registrationDefinitionId The GUID of the registration definition.
         * 
         * @return builder
         * 
         */
        public Builder registrationDefinitionId(String registrationDefinitionId) {
            return registrationDefinitionId(Output.of(registrationDefinitionId));
        }

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

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

        public RegistrationDefinitionArgs build() {
            if ($.scope == null) {
                throw new MissingRequiredPropertyException("RegistrationDefinitionArgs", "scope");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy