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

com.pulumi.azurenative.machinelearningservices.inputs.ContentSafetyEndpointDeploymentResourcePropertiesArgs Maven / Gradle / Ivy

// *** 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.machinelearningservices.inputs;

import com.pulumi.azurenative.machinelearningservices.enums.DeploymentModelVersionUpgradeOption;
import com.pulumi.azurenative.machinelearningservices.inputs.CognitiveServicesSkuArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.EndpointDeploymentModelArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ContentSafetyEndpointDeploymentResourcePropertiesArgs Empty = new ContentSafetyEndpointDeploymentResourcePropertiesArgs();

    /**
     * The failure reason if the creation failed.
     * 
     */
    @Import(name="failureReason")
    private @Nullable Output failureReason;

    /**
     * @return The failure reason if the creation failed.
     * 
     */
    public Optional> failureReason() {
        return Optional.ofNullable(this.failureReason);
    }

    /**
     * Model used for the endpoint deployment.
     * 
     */
    @Import(name="model", required=true)
    private Output model;

    /**
     * @return Model used for the endpoint deployment.
     * 
     */
    public Output model() {
        return this.model;
    }

    /**
     * The name of RAI policy.
     * 
     */
    @Import(name="raiPolicyName")
    private @Nullable Output raiPolicyName;

    /**
     * @return The name of RAI policy.
     * 
     */
    public Optional> raiPolicyName() {
        return Optional.ofNullable(this.raiPolicyName);
    }

    @Import(name="sku")
    private @Nullable Output sku;

    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

    /**
     * Kind of the deployment.
     * Expected value is 'Azure.ContentSafety'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Kind of the deployment.
     * Expected value is 'Azure.ContentSafety'.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * Deployment model version upgrade option.
     * 
     */
    @Import(name="versionUpgradeOption")
    private @Nullable Output> versionUpgradeOption;

    /**
     * @return Deployment model version upgrade option.
     * 
     */
    public Optional>> versionUpgradeOption() {
        return Optional.ofNullable(this.versionUpgradeOption);
    }

    private ContentSafetyEndpointDeploymentResourcePropertiesArgs() {}

    private ContentSafetyEndpointDeploymentResourcePropertiesArgs(ContentSafetyEndpointDeploymentResourcePropertiesArgs $) {
        this.failureReason = $.failureReason;
        this.model = $.model;
        this.raiPolicyName = $.raiPolicyName;
        this.sku = $.sku;
        this.type = $.type;
        this.versionUpgradeOption = $.versionUpgradeOption;
    }

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

    public static final class Builder {
        private ContentSafetyEndpointDeploymentResourcePropertiesArgs $;

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

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

        /**
         * @param failureReason The failure reason if the creation failed.
         * 
         * @return builder
         * 
         */
        public Builder failureReason(@Nullable Output failureReason) {
            $.failureReason = failureReason;
            return this;
        }

        /**
         * @param failureReason The failure reason if the creation failed.
         * 
         * @return builder
         * 
         */
        public Builder failureReason(String failureReason) {
            return failureReason(Output.of(failureReason));
        }

        /**
         * @param model Model used for the endpoint deployment.
         * 
         * @return builder
         * 
         */
        public Builder model(Output model) {
            $.model = model;
            return this;
        }

        /**
         * @param model Model used for the endpoint deployment.
         * 
         * @return builder
         * 
         */
        public Builder model(EndpointDeploymentModelArgs model) {
            return model(Output.of(model));
        }

        /**
         * @param raiPolicyName The name of RAI policy.
         * 
         * @return builder
         * 
         */
        public Builder raiPolicyName(@Nullable Output raiPolicyName) {
            $.raiPolicyName = raiPolicyName;
            return this;
        }

        /**
         * @param raiPolicyName The name of RAI policy.
         * 
         * @return builder
         * 
         */
        public Builder raiPolicyName(String raiPolicyName) {
            return raiPolicyName(Output.of(raiPolicyName));
        }

        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        public Builder sku(CognitiveServicesSkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param type Kind of the deployment.
         * Expected value is 'Azure.ContentSafety'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Kind of the deployment.
         * Expected value is 'Azure.ContentSafety'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param versionUpgradeOption Deployment model version upgrade option.
         * 
         * @return builder
         * 
         */
        public Builder versionUpgradeOption(@Nullable Output> versionUpgradeOption) {
            $.versionUpgradeOption = versionUpgradeOption;
            return this;
        }

        /**
         * @param versionUpgradeOption Deployment model version upgrade option.
         * 
         * @return builder
         * 
         */
        public Builder versionUpgradeOption(Either versionUpgradeOption) {
            return versionUpgradeOption(Output.of(versionUpgradeOption));
        }

        /**
         * @param versionUpgradeOption Deployment model version upgrade option.
         * 
         * @return builder
         * 
         */
        public Builder versionUpgradeOption(String versionUpgradeOption) {
            return versionUpgradeOption(Either.ofLeft(versionUpgradeOption));
        }

        /**
         * @param versionUpgradeOption Deployment model version upgrade option.
         * 
         * @return builder
         * 
         */
        public Builder versionUpgradeOption(DeploymentModelVersionUpgradeOption versionUpgradeOption) {
            return versionUpgradeOption(Either.ofRight(versionUpgradeOption));
        }

        public ContentSafetyEndpointDeploymentResourcePropertiesArgs build() {
            if ($.model == null) {
                throw new MissingRequiredPropertyException("ContentSafetyEndpointDeploymentResourcePropertiesArgs", "model");
            }
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy