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

com.pulumi.azurenative.datashare.InvitationArgs 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.datashare;

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

    public static final InvitationArgs Empty = new InvitationArgs();

    /**
     * The name of the share account.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The name of the share account.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * The expiration date for the invitation and share subscription.
     * 
     */
    @Import(name="expirationDate")
    private @Nullable Output expirationDate;

    /**
     * @return The expiration date for the invitation and share subscription.
     * 
     */
    public Optional> expirationDate() {
        return Optional.ofNullable(this.expirationDate);
    }

    /**
     * The name of the invitation.
     * 
     */
    @Import(name="invitationName")
    private @Nullable Output invitationName;

    /**
     * @return The name of the invitation.
     * 
     */
    public Optional> invitationName() {
        return Optional.ofNullable(this.invitationName);
    }

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

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

    /**
     * The name of the share to send the invitation for.
     * 
     */
    @Import(name="shareName", required=true)
    private Output shareName;

    /**
     * @return The name of the share to send the invitation for.
     * 
     */
    public Output shareName() {
        return this.shareName;
    }

    /**
     * The target Azure AD Id. Can't be combined with email.
     * 
     */
    @Import(name="targetActiveDirectoryId")
    private @Nullable Output targetActiveDirectoryId;

    /**
     * @return The target Azure AD Id. Can't be combined with email.
     * 
     */
    public Optional> targetActiveDirectoryId() {
        return Optional.ofNullable(this.targetActiveDirectoryId);
    }

    /**
     * The email the invitation is directed to.
     * 
     */
    @Import(name="targetEmail")
    private @Nullable Output targetEmail;

    /**
     * @return The email the invitation is directed to.
     * 
     */
    public Optional> targetEmail() {
        return Optional.ofNullable(this.targetEmail);
    }

    /**
     * The target user or application Id that invitation is being sent to.
     * Must be specified along TargetActiveDirectoryId. This enables sending
     * invitations to specific users or applications in an AD tenant.
     * 
     */
    @Import(name="targetObjectId")
    private @Nullable Output targetObjectId;

    /**
     * @return The target user or application Id that invitation is being sent to.
     * Must be specified along TargetActiveDirectoryId. This enables sending
     * invitations to specific users or applications in an AD tenant.
     * 
     */
    public Optional> targetObjectId() {
        return Optional.ofNullable(this.targetObjectId);
    }

    private InvitationArgs() {}

    private InvitationArgs(InvitationArgs $) {
        this.accountName = $.accountName;
        this.expirationDate = $.expirationDate;
        this.invitationName = $.invitationName;
        this.resourceGroupName = $.resourceGroupName;
        this.shareName = $.shareName;
        this.targetActiveDirectoryId = $.targetActiveDirectoryId;
        this.targetEmail = $.targetEmail;
        this.targetObjectId = $.targetObjectId;
    }

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

    public static final class Builder {
        private InvitationArgs $;

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

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

        /**
         * @param accountName The name of the share account.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName The name of the share account.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param expirationDate The expiration date for the invitation and share subscription.
         * 
         * @return builder
         * 
         */
        public Builder expirationDate(@Nullable Output expirationDate) {
            $.expirationDate = expirationDate;
            return this;
        }

        /**
         * @param expirationDate The expiration date for the invitation and share subscription.
         * 
         * @return builder
         * 
         */
        public Builder expirationDate(String expirationDate) {
            return expirationDate(Output.of(expirationDate));
        }

        /**
         * @param invitationName The name of the invitation.
         * 
         * @return builder
         * 
         */
        public Builder invitationName(@Nullable Output invitationName) {
            $.invitationName = invitationName;
            return this;
        }

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

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

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

        /**
         * @param shareName The name of the share to send the invitation for.
         * 
         * @return builder
         * 
         */
        public Builder shareName(Output shareName) {
            $.shareName = shareName;
            return this;
        }

        /**
         * @param shareName The name of the share to send the invitation for.
         * 
         * @return builder
         * 
         */
        public Builder shareName(String shareName) {
            return shareName(Output.of(shareName));
        }

        /**
         * @param targetActiveDirectoryId The target Azure AD Id. Can't be combined with email.
         * 
         * @return builder
         * 
         */
        public Builder targetActiveDirectoryId(@Nullable Output targetActiveDirectoryId) {
            $.targetActiveDirectoryId = targetActiveDirectoryId;
            return this;
        }

        /**
         * @param targetActiveDirectoryId The target Azure AD Id. Can't be combined with email.
         * 
         * @return builder
         * 
         */
        public Builder targetActiveDirectoryId(String targetActiveDirectoryId) {
            return targetActiveDirectoryId(Output.of(targetActiveDirectoryId));
        }

        /**
         * @param targetEmail The email the invitation is directed to.
         * 
         * @return builder
         * 
         */
        public Builder targetEmail(@Nullable Output targetEmail) {
            $.targetEmail = targetEmail;
            return this;
        }

        /**
         * @param targetEmail The email the invitation is directed to.
         * 
         * @return builder
         * 
         */
        public Builder targetEmail(String targetEmail) {
            return targetEmail(Output.of(targetEmail));
        }

        /**
         * @param targetObjectId The target user or application Id that invitation is being sent to.
         * Must be specified along TargetActiveDirectoryId. This enables sending
         * invitations to specific users or applications in an AD tenant.
         * 
         * @return builder
         * 
         */
        public Builder targetObjectId(@Nullable Output targetObjectId) {
            $.targetObjectId = targetObjectId;
            return this;
        }

        /**
         * @param targetObjectId The target user or application Id that invitation is being sent to.
         * Must be specified along TargetActiveDirectoryId. This enables sending
         * invitations to specific users or applications in an AD tenant.
         * 
         * @return builder
         * 
         */
        public Builder targetObjectId(String targetObjectId) {
            return targetObjectId(Output.of(targetObjectId));
        }

        public InvitationArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("InvitationArgs", "accountName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("InvitationArgs", "resourceGroupName");
            }
            if ($.shareName == null) {
                throw new MissingRequiredPropertyException("InvitationArgs", "shareName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy