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

com.pulumi.azurenative.datashare.ShareSubscriptionArgs 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 ShareSubscriptionArgs extends com.pulumi.resources.ResourceArgs {

    public static final ShareSubscriptionArgs Empty = new ShareSubscriptionArgs();

    /**
     * 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 of the share subscription.
     * 
     */
    @Import(name="expirationDate")
    private @Nullable Output expirationDate;

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

    /**
     * The invitation id.
     * 
     */
    @Import(name="invitationId", required=true)
    private Output invitationId;

    /**
     * @return The invitation id.
     * 
     */
    public Output invitationId() {
        return this.invitationId;
    }

    /**
     * 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 shareSubscription.
     * 
     */
    @Import(name="shareSubscriptionName")
    private @Nullable Output shareSubscriptionName;

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

    /**
     * Source share location.
     * 
     */
    @Import(name="sourceShareLocation", required=true)
    private Output sourceShareLocation;

    /**
     * @return Source share location.
     * 
     */
    public Output sourceShareLocation() {
        return this.sourceShareLocation;
    }

    private ShareSubscriptionArgs() {}

    private ShareSubscriptionArgs(ShareSubscriptionArgs $) {
        this.accountName = $.accountName;
        this.expirationDate = $.expirationDate;
        this.invitationId = $.invitationId;
        this.resourceGroupName = $.resourceGroupName;
        this.shareSubscriptionName = $.shareSubscriptionName;
        this.sourceShareLocation = $.sourceShareLocation;
    }

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

    public static final class Builder {
        private ShareSubscriptionArgs $;

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

        public Builder(ShareSubscriptionArgs defaults) {
            $ = new ShareSubscriptionArgs(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 of the share subscription.
         * 
         * @return builder
         * 
         */
        public Builder expirationDate(@Nullable Output expirationDate) {
            $.expirationDate = expirationDate;
            return this;
        }

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

        /**
         * @param invitationId The invitation id.
         * 
         * @return builder
         * 
         */
        public Builder invitationId(Output invitationId) {
            $.invitationId = invitationId;
            return this;
        }

        /**
         * @param invitationId The invitation id.
         * 
         * @return builder
         * 
         */
        public Builder invitationId(String invitationId) {
            return invitationId(Output.of(invitationId));
        }

        /**
         * @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 shareSubscriptionName The name of the shareSubscription.
         * 
         * @return builder
         * 
         */
        public Builder shareSubscriptionName(@Nullable Output shareSubscriptionName) {
            $.shareSubscriptionName = shareSubscriptionName;
            return this;
        }

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

        /**
         * @param sourceShareLocation Source share location.
         * 
         * @return builder
         * 
         */
        public Builder sourceShareLocation(Output sourceShareLocation) {
            $.sourceShareLocation = sourceShareLocation;
            return this;
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy