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

com.pulumi.azurenative.azuresphere.DeviceGroupArgs Maven / Gradle / Ivy

The 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.azuresphere;

import com.pulumi.azurenative.azuresphere.enums.AllowCrashDumpCollection;
import com.pulumi.azurenative.azuresphere.enums.OSFeedType;
import com.pulumi.azurenative.azuresphere.enums.RegionalDataBoundary;
import com.pulumi.azurenative.azuresphere.enums.UpdatePolicy;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DeviceGroupArgs Empty = new DeviceGroupArgs();

    /**
     * Flag to define if the user allows for crash dump collection.
     * 
     */
    @Import(name="allowCrashDumpsCollection")
    private @Nullable Output> allowCrashDumpsCollection;

    /**
     * @return Flag to define if the user allows for crash dump collection.
     * 
     */
    public Optional>> allowCrashDumpsCollection() {
        return Optional.ofNullable(this.allowCrashDumpsCollection);
    }

    /**
     * Name of catalog
     * 
     */
    @Import(name="catalogName", required=true)
    private Output catalogName;

    /**
     * @return Name of catalog
     * 
     */
    public Output catalogName() {
        return this.catalogName;
    }

    /**
     * Description of the device group.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of the device group.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Name of device group.
     * 
     */
    @Import(name="deviceGroupName")
    private @Nullable Output deviceGroupName;

    /**
     * @return Name of device group.
     * 
     */
    public Optional> deviceGroupName() {
        return Optional.ofNullable(this.deviceGroupName);
    }

    /**
     * Operating system feed type of the device group.
     * 
     */
    @Import(name="osFeedType")
    private @Nullable Output> osFeedType;

    /**
     * @return Operating system feed type of the device group.
     * 
     */
    public Optional>> osFeedType() {
        return Optional.ofNullable(this.osFeedType);
    }

    /**
     * Name of product.
     * 
     */
    @Import(name="productName", required=true)
    private Output productName;

    /**
     * @return Name of product.
     * 
     */
    public Output productName() {
        return this.productName;
    }

    /**
     * Regional data boundary for the device group.
     * 
     */
    @Import(name="regionalDataBoundary")
    private @Nullable Output> regionalDataBoundary;

    /**
     * @return Regional data boundary for the device group.
     * 
     */
    public Optional>> regionalDataBoundary() {
        return Optional.ofNullable(this.regionalDataBoundary);
    }

    /**
     * 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;
    }

    /**
     * Update policy of the device group.
     * 
     */
    @Import(name="updatePolicy")
    private @Nullable Output> updatePolicy;

    /**
     * @return Update policy of the device group.
     * 
     */
    public Optional>> updatePolicy() {
        return Optional.ofNullable(this.updatePolicy);
    }

    private DeviceGroupArgs() {}

    private DeviceGroupArgs(DeviceGroupArgs $) {
        this.allowCrashDumpsCollection = $.allowCrashDumpsCollection;
        this.catalogName = $.catalogName;
        this.description = $.description;
        this.deviceGroupName = $.deviceGroupName;
        this.osFeedType = $.osFeedType;
        this.productName = $.productName;
        this.regionalDataBoundary = $.regionalDataBoundary;
        this.resourceGroupName = $.resourceGroupName;
        this.updatePolicy = $.updatePolicy;
    }

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

    public static final class Builder {
        private DeviceGroupArgs $;

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

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

        /**
         * @param allowCrashDumpsCollection Flag to define if the user allows for crash dump collection.
         * 
         * @return builder
         * 
         */
        public Builder allowCrashDumpsCollection(@Nullable Output> allowCrashDumpsCollection) {
            $.allowCrashDumpsCollection = allowCrashDumpsCollection;
            return this;
        }

        /**
         * @param allowCrashDumpsCollection Flag to define if the user allows for crash dump collection.
         * 
         * @return builder
         * 
         */
        public Builder allowCrashDumpsCollection(Either allowCrashDumpsCollection) {
            return allowCrashDumpsCollection(Output.of(allowCrashDumpsCollection));
        }

        /**
         * @param allowCrashDumpsCollection Flag to define if the user allows for crash dump collection.
         * 
         * @return builder
         * 
         */
        public Builder allowCrashDumpsCollection(String allowCrashDumpsCollection) {
            return allowCrashDumpsCollection(Either.ofLeft(allowCrashDumpsCollection));
        }

        /**
         * @param allowCrashDumpsCollection Flag to define if the user allows for crash dump collection.
         * 
         * @return builder
         * 
         */
        public Builder allowCrashDumpsCollection(AllowCrashDumpCollection allowCrashDumpsCollection) {
            return allowCrashDumpsCollection(Either.ofRight(allowCrashDumpsCollection));
        }

        /**
         * @param catalogName Name of catalog
         * 
         * @return builder
         * 
         */
        public Builder catalogName(Output catalogName) {
            $.catalogName = catalogName;
            return this;
        }

        /**
         * @param catalogName Name of catalog
         * 
         * @return builder
         * 
         */
        public Builder catalogName(String catalogName) {
            return catalogName(Output.of(catalogName));
        }

        /**
         * @param description Description of the device group.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the device group.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param deviceGroupName Name of device group.
         * 
         * @return builder
         * 
         */
        public Builder deviceGroupName(@Nullable Output deviceGroupName) {
            $.deviceGroupName = deviceGroupName;
            return this;
        }

        /**
         * @param deviceGroupName Name of device group.
         * 
         * @return builder
         * 
         */
        public Builder deviceGroupName(String deviceGroupName) {
            return deviceGroupName(Output.of(deviceGroupName));
        }

        /**
         * @param osFeedType Operating system feed type of the device group.
         * 
         * @return builder
         * 
         */
        public Builder osFeedType(@Nullable Output> osFeedType) {
            $.osFeedType = osFeedType;
            return this;
        }

        /**
         * @param osFeedType Operating system feed type of the device group.
         * 
         * @return builder
         * 
         */
        public Builder osFeedType(Either osFeedType) {
            return osFeedType(Output.of(osFeedType));
        }

        /**
         * @param osFeedType Operating system feed type of the device group.
         * 
         * @return builder
         * 
         */
        public Builder osFeedType(String osFeedType) {
            return osFeedType(Either.ofLeft(osFeedType));
        }

        /**
         * @param osFeedType Operating system feed type of the device group.
         * 
         * @return builder
         * 
         */
        public Builder osFeedType(OSFeedType osFeedType) {
            return osFeedType(Either.ofRight(osFeedType));
        }

        /**
         * @param productName Name of product.
         * 
         * @return builder
         * 
         */
        public Builder productName(Output productName) {
            $.productName = productName;
            return this;
        }

        /**
         * @param productName Name of product.
         * 
         * @return builder
         * 
         */
        public Builder productName(String productName) {
            return productName(Output.of(productName));
        }

        /**
         * @param regionalDataBoundary Regional data boundary for the device group.
         * 
         * @return builder
         * 
         */
        public Builder regionalDataBoundary(@Nullable Output> regionalDataBoundary) {
            $.regionalDataBoundary = regionalDataBoundary;
            return this;
        }

        /**
         * @param regionalDataBoundary Regional data boundary for the device group.
         * 
         * @return builder
         * 
         */
        public Builder regionalDataBoundary(Either regionalDataBoundary) {
            return regionalDataBoundary(Output.of(regionalDataBoundary));
        }

        /**
         * @param regionalDataBoundary Regional data boundary for the device group.
         * 
         * @return builder
         * 
         */
        public Builder regionalDataBoundary(String regionalDataBoundary) {
            return regionalDataBoundary(Either.ofLeft(regionalDataBoundary));
        }

        /**
         * @param regionalDataBoundary Regional data boundary for the device group.
         * 
         * @return builder
         * 
         */
        public Builder regionalDataBoundary(RegionalDataBoundary regionalDataBoundary) {
            return regionalDataBoundary(Either.ofRight(regionalDataBoundary));
        }

        /**
         * @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 updatePolicy Update policy of the device group.
         * 
         * @return builder
         * 
         */
        public Builder updatePolicy(@Nullable Output> updatePolicy) {
            $.updatePolicy = updatePolicy;
            return this;
        }

        /**
         * @param updatePolicy Update policy of the device group.
         * 
         * @return builder
         * 
         */
        public Builder updatePolicy(Either updatePolicy) {
            return updatePolicy(Output.of(updatePolicy));
        }

        /**
         * @param updatePolicy Update policy of the device group.
         * 
         * @return builder
         * 
         */
        public Builder updatePolicy(String updatePolicy) {
            return updatePolicy(Either.ofLeft(updatePolicy));
        }

        /**
         * @param updatePolicy Update policy of the device group.
         * 
         * @return builder
         * 
         */
        public Builder updatePolicy(UpdatePolicy updatePolicy) {
            return updatePolicy(Either.ofRight(updatePolicy));
        }

        public DeviceGroupArgs build() {
            if ($.catalogName == null) {
                throw new MissingRequiredPropertyException("DeviceGroupArgs", "catalogName");
            }
            if ($.productName == null) {
                throw new MissingRequiredPropertyException("DeviceGroupArgs", "productName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("DeviceGroupArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy