
com.pulumi.azurenative.machinelearningservices.outputs.ContentSafetyEndpointDeploymentResourcePropertiesResponse 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.outputs;
import com.pulumi.azurenative.machinelearningservices.outputs.CognitiveServicesSkuResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.EndpointDeploymentModelResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ContentSafetyEndpointDeploymentResourcePropertiesResponse {
/**
* @return The failure reason if the creation failed.
*
*/
private @Nullable String failureReason;
/**
* @return Model used for the endpoint deployment.
*
*/
private EndpointDeploymentModelResponse model;
/**
* @return Read-only provision state status property.
*
*/
private String provisioningState;
/**
* @return The name of RAI policy.
*
*/
private @Nullable String raiPolicyName;
private @Nullable CognitiveServicesSkuResponse sku;
/**
* @return Kind of the deployment.
* Expected value is 'Azure.ContentSafety'.
*
*/
private String type;
/**
* @return Deployment model version upgrade option.
*
*/
private @Nullable String versionUpgradeOption;
private ContentSafetyEndpointDeploymentResourcePropertiesResponse() {}
/**
* @return The failure reason if the creation failed.
*
*/
public Optional failureReason() {
return Optional.ofNullable(this.failureReason);
}
/**
* @return Model used for the endpoint deployment.
*
*/
public EndpointDeploymentModelResponse model() {
return this.model;
}
/**
* @return Read-only provision state status property.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The name of RAI policy.
*
*/
public Optional raiPolicyName() {
return Optional.ofNullable(this.raiPolicyName);
}
public Optional sku() {
return Optional.ofNullable(this.sku);
}
/**
* @return Kind of the deployment.
* Expected value is 'Azure.ContentSafety'.
*
*/
public String type() {
return this.type;
}
/**
* @return Deployment model version upgrade option.
*
*/
public Optional versionUpgradeOption() {
return Optional.ofNullable(this.versionUpgradeOption);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ContentSafetyEndpointDeploymentResourcePropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String failureReason;
private EndpointDeploymentModelResponse model;
private String provisioningState;
private @Nullable String raiPolicyName;
private @Nullable CognitiveServicesSkuResponse sku;
private String type;
private @Nullable String versionUpgradeOption;
public Builder() {}
public Builder(ContentSafetyEndpointDeploymentResourcePropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.failureReason = defaults.failureReason;
this.model = defaults.model;
this.provisioningState = defaults.provisioningState;
this.raiPolicyName = defaults.raiPolicyName;
this.sku = defaults.sku;
this.type = defaults.type;
this.versionUpgradeOption = defaults.versionUpgradeOption;
}
@CustomType.Setter
public Builder failureReason(@Nullable String failureReason) {
this.failureReason = failureReason;
return this;
}
@CustomType.Setter
public Builder model(EndpointDeploymentModelResponse model) {
if (model == null) {
throw new MissingRequiredPropertyException("ContentSafetyEndpointDeploymentResourcePropertiesResponse", "model");
}
this.model = model;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("ContentSafetyEndpointDeploymentResourcePropertiesResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder raiPolicyName(@Nullable String raiPolicyName) {
this.raiPolicyName = raiPolicyName;
return this;
}
@CustomType.Setter
public Builder sku(@Nullable CognitiveServicesSkuResponse sku) {
this.sku = sku;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("ContentSafetyEndpointDeploymentResourcePropertiesResponse", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder versionUpgradeOption(@Nullable String versionUpgradeOption) {
this.versionUpgradeOption = versionUpgradeOption;
return this;
}
public ContentSafetyEndpointDeploymentResourcePropertiesResponse build() {
final var _resultValue = new ContentSafetyEndpointDeploymentResourcePropertiesResponse();
_resultValue.failureReason = failureReason;
_resultValue.model = model;
_resultValue.provisioningState = provisioningState;
_resultValue.raiPolicyName = raiPolicyName;
_resultValue.sku = sku;
_resultValue.type = type;
_resultValue.versionUpgradeOption = versionUpgradeOption;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy