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

com.pulumi.azurenative.devcenter.PlanMemberArgs 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.devcenter;

import com.pulumi.azurenative.devcenter.enums.PlanMemberType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class PlanMemberArgs extends com.pulumi.resources.ResourceArgs {

    public static final PlanMemberArgs Empty = new PlanMemberArgs();

    /**
     * The unique id of the member.
     * 
     */
    @Import(name="memberId")
    private @Nullable Output memberId;

    /**
     * @return The unique id of the member.
     * 
     */
    public Optional> memberId() {
        return Optional.ofNullable(this.memberId);
    }

    /**
     * The name of a devcenter plan member.
     * 
     */
    @Import(name="memberName")
    private @Nullable Output memberName;

    /**
     * @return The name of a devcenter plan member.
     * 
     */
    public Optional> memberName() {
        return Optional.ofNullable(this.memberName);
    }

    /**
     * The type of the member (user, group)
     * 
     */
    @Import(name="memberType")
    private @Nullable Output> memberType;

    /**
     * @return The type of the member (user, group)
     * 
     */
    public Optional>> memberType() {
        return Optional.ofNullable(this.memberType);
    }

    /**
     * The name of the devcenter plan.
     * 
     */
    @Import(name="planName", required=true)
    private Output planName;

    /**
     * @return The name of the devcenter plan.
     * 
     */
    public Output planName() {
        return this.planName;
    }

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

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

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

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

    private PlanMemberArgs() {}

    private PlanMemberArgs(PlanMemberArgs $) {
        this.memberId = $.memberId;
        this.memberName = $.memberName;
        this.memberType = $.memberType;
        this.planName = $.planName;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private PlanMemberArgs $;

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

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

        /**
         * @param memberId The unique id of the member.
         * 
         * @return builder
         * 
         */
        public Builder memberId(@Nullable Output memberId) {
            $.memberId = memberId;
            return this;
        }

        /**
         * @param memberId The unique id of the member.
         * 
         * @return builder
         * 
         */
        public Builder memberId(String memberId) {
            return memberId(Output.of(memberId));
        }

        /**
         * @param memberName The name of a devcenter plan member.
         * 
         * @return builder
         * 
         */
        public Builder memberName(@Nullable Output memberName) {
            $.memberName = memberName;
            return this;
        }

        /**
         * @param memberName The name of a devcenter plan member.
         * 
         * @return builder
         * 
         */
        public Builder memberName(String memberName) {
            return memberName(Output.of(memberName));
        }

        /**
         * @param memberType The type of the member (user, group)
         * 
         * @return builder
         * 
         */
        public Builder memberType(@Nullable Output> memberType) {
            $.memberType = memberType;
            return this;
        }

        /**
         * @param memberType The type of the member (user, group)
         * 
         * @return builder
         * 
         */
        public Builder memberType(Either memberType) {
            return memberType(Output.of(memberType));
        }

        /**
         * @param memberType The type of the member (user, group)
         * 
         * @return builder
         * 
         */
        public Builder memberType(String memberType) {
            return memberType(Either.ofLeft(memberType));
        }

        /**
         * @param memberType The type of the member (user, group)
         * 
         * @return builder
         * 
         */
        public Builder memberType(PlanMemberType memberType) {
            return memberType(Either.ofRight(memberType));
        }

        /**
         * @param planName The name of the devcenter plan.
         * 
         * @return builder
         * 
         */
        public Builder planName(Output planName) {
            $.planName = planName;
            return this;
        }

        /**
         * @param planName The name of the devcenter plan.
         * 
         * @return builder
         * 
         */
        public Builder planName(String planName) {
            return planName(Output.of(planName));
        }

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

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy