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

com.pulumi.azurenative.managedservices.RegistrationAssignmentArgs 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.RegistrationAssignmentPropertiesArgs;
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 RegistrationAssignmentArgs extends com.pulumi.resources.ResourceArgs {

    public static final RegistrationAssignmentArgs Empty = new RegistrationAssignmentArgs();

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

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

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

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

    /**
     * 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 RegistrationAssignmentArgs() {}

    private RegistrationAssignmentArgs(RegistrationAssignmentArgs $) {
        this.properties = $.properties;
        this.registrationAssignmentId = $.registrationAssignmentId;
        this.scope = $.scope;
    }

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

    public static final class Builder {
        private RegistrationAssignmentArgs $;

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

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

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

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

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

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

        /**
         * @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 RegistrationAssignmentArgs build() {
            if ($.scope == null) {
                throw new MissingRequiredPropertyException("RegistrationAssignmentArgs", "scope");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy