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

com.pulumi.alicloud.mhub.AppArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.mhub;

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

    public static final AppArgs Empty = new AppArgs();

    /**
     * AppName.
     * 
     */
    @Import(name="appName", required=true)
    private Output appName;

    /**
     * @return AppName.
     * 
     */
    public Output appName() {
        return this.appName;
    }

    /**
     * The app id of iOS. **NOTE:** Either `bundle_id` or `package_name` must be set.
     * 
     */
    @Import(name="bundleId")
    private @Nullable Output bundleId;

    /**
     * @return The app id of iOS. **NOTE:** Either `bundle_id` or `package_name` must be set.
     * 
     */
    public Optional> bundleId() {
        return Optional.ofNullable(this.bundleId);
    }

    /**
     * Base64 string of picture.
     * 
     */
    @Import(name="encodedIcon")
    private @Nullable Output encodedIcon;

    /**
     * @return Base64 string of picture.
     * 
     */
    public Optional> encodedIcon() {
        return Optional.ofNullable(this.encodedIcon);
    }

    /**
     * The Industry ID of the app. For information about Industry and how to use it, MHUB[Industry](https://help.aliyun.com/document_detail/201638.html).
     * 
     */
    @Import(name="industryId")
    private @Nullable Output industryId;

    /**
     * @return The Industry ID of the app. For information about Industry and how to use it, MHUB[Industry](https://help.aliyun.com/document_detail/201638.html).
     * 
     */
    public Optional> industryId() {
        return Optional.ofNullable(this.industryId);
    }

    /**
     * Android App package name. **NOTE:** Either `bundle_id` or `package_name` must be set.
     * 
     */
    @Import(name="packageName")
    private @Nullable Output packageName;

    /**
     * @return Android App package name. **NOTE:** Either `bundle_id` or `package_name` must be set.
     * 
     */
    public Optional> packageName() {
        return Optional.ofNullable(this.packageName);
    }

    /**
     * The ID of the Product.
     * 
     */
    @Import(name="productId", required=true)
    private Output productId;

    /**
     * @return The ID of the Product.
     * 
     */
    public Output productId() {
        return this.productId;
    }

    /**
     * The type of the Product. Valid values: `Android` and `iOS`.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The type of the Product. Valid values: `Android` and `iOS`.
     * 
     */
    public Output type() {
        return this.type;
    }

    private AppArgs() {}

    private AppArgs(AppArgs $) {
        this.appName = $.appName;
        this.bundleId = $.bundleId;
        this.encodedIcon = $.encodedIcon;
        this.industryId = $.industryId;
        this.packageName = $.packageName;
        this.productId = $.productId;
        this.type = $.type;
    }

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

    public static final class Builder {
        private AppArgs $;

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

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

        /**
         * @param appName AppName.
         * 
         * @return builder
         * 
         */
        public Builder appName(Output appName) {
            $.appName = appName;
            return this;
        }

        /**
         * @param appName AppName.
         * 
         * @return builder
         * 
         */
        public Builder appName(String appName) {
            return appName(Output.of(appName));
        }

        /**
         * @param bundleId The app id of iOS. **NOTE:** Either `bundle_id` or `package_name` must be set.
         * 
         * @return builder
         * 
         */
        public Builder bundleId(@Nullable Output bundleId) {
            $.bundleId = bundleId;
            return this;
        }

        /**
         * @param bundleId The app id of iOS. **NOTE:** Either `bundle_id` or `package_name` must be set.
         * 
         * @return builder
         * 
         */
        public Builder bundleId(String bundleId) {
            return bundleId(Output.of(bundleId));
        }

        /**
         * @param encodedIcon Base64 string of picture.
         * 
         * @return builder
         * 
         */
        public Builder encodedIcon(@Nullable Output encodedIcon) {
            $.encodedIcon = encodedIcon;
            return this;
        }

        /**
         * @param encodedIcon Base64 string of picture.
         * 
         * @return builder
         * 
         */
        public Builder encodedIcon(String encodedIcon) {
            return encodedIcon(Output.of(encodedIcon));
        }

        /**
         * @param industryId The Industry ID of the app. For information about Industry and how to use it, MHUB[Industry](https://help.aliyun.com/document_detail/201638.html).
         * 
         * @return builder
         * 
         */
        public Builder industryId(@Nullable Output industryId) {
            $.industryId = industryId;
            return this;
        }

        /**
         * @param industryId The Industry ID of the app. For information about Industry and how to use it, MHUB[Industry](https://help.aliyun.com/document_detail/201638.html).
         * 
         * @return builder
         * 
         */
        public Builder industryId(String industryId) {
            return industryId(Output.of(industryId));
        }

        /**
         * @param packageName Android App package name. **NOTE:** Either `bundle_id` or `package_name` must be set.
         * 
         * @return builder
         * 
         */
        public Builder packageName(@Nullable Output packageName) {
            $.packageName = packageName;
            return this;
        }

        /**
         * @param packageName Android App package name. **NOTE:** Either `bundle_id` or `package_name` must be set.
         * 
         * @return builder
         * 
         */
        public Builder packageName(String packageName) {
            return packageName(Output.of(packageName));
        }

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

        /**
         * @param productId The ID of the Product.
         * 
         * @return builder
         * 
         */
        public Builder productId(String productId) {
            return productId(Output.of(productId));
        }

        /**
         * @param type The type of the Product. Valid values: `Android` and `iOS`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of the Product. Valid values: `Android` and `iOS`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public AppArgs build() {
            if ($.appName == null) {
                throw new MissingRequiredPropertyException("AppArgs", "appName");
            }
            if ($.productId == null) {
                throw new MissingRequiredPropertyException("AppArgs", "productId");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("AppArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy