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

com.pulumi.azurenative.cognitiveservices.outputs.DeploymentPropertiesResponse 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.cognitiveservices.outputs;

import com.pulumi.azurenative.cognitiveservices.outputs.CallRateLimitResponse;
import com.pulumi.azurenative.cognitiveservices.outputs.DeploymentModelResponse;
import com.pulumi.azurenative.cognitiveservices.outputs.DeploymentScaleSettingsResponse;
import com.pulumi.azurenative.cognitiveservices.outputs.ThrottlingRuleResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DeploymentPropertiesResponse {
    /**
     * @return The call rate limit Cognitive Services account.
     * 
     */
    private CallRateLimitResponse callRateLimit;
    /**
     * @return The capabilities.
     * 
     */
    private Map capabilities;
    /**
     * @return Properties of Cognitive Services account deployment model.
     * 
     */
    private @Nullable DeploymentModelResponse model;
    /**
     * @return Gets the status of the resource at the time the operation was called.
     * 
     */
    private String provisioningState;
    /**
     * @return The name of RAI policy.
     * 
     */
    private @Nullable String raiPolicyName;
    private List rateLimits;
    /**
     * @return Properties of Cognitive Services account deployment model.
     * 
     */
    private @Nullable DeploymentScaleSettingsResponse scaleSettings;
    /**
     * @return Deployment model version upgrade option.
     * 
     */
    private @Nullable String versionUpgradeOption;

    private DeploymentPropertiesResponse() {}
    /**
     * @return The call rate limit Cognitive Services account.
     * 
     */
    public CallRateLimitResponse callRateLimit() {
        return this.callRateLimit;
    }
    /**
     * @return The capabilities.
     * 
     */
    public Map capabilities() {
        return this.capabilities;
    }
    /**
     * @return Properties of Cognitive Services account deployment model.
     * 
     */
    public Optional model() {
        return Optional.ofNullable(this.model);
    }
    /**
     * @return Gets the status of the resource at the time the operation was called.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The name of RAI policy.
     * 
     */
    public Optional raiPolicyName() {
        return Optional.ofNullable(this.raiPolicyName);
    }
    public List rateLimits() {
        return this.rateLimits;
    }
    /**
     * @return Properties of Cognitive Services account deployment model.
     * 
     */
    public Optional scaleSettings() {
        return Optional.ofNullable(this.scaleSettings);
    }
    /**
     * @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(DeploymentPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private CallRateLimitResponse callRateLimit;
        private Map capabilities;
        private @Nullable DeploymentModelResponse model;
        private String provisioningState;
        private @Nullable String raiPolicyName;
        private List rateLimits;
        private @Nullable DeploymentScaleSettingsResponse scaleSettings;
        private @Nullable String versionUpgradeOption;
        public Builder() {}
        public Builder(DeploymentPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.callRateLimit = defaults.callRateLimit;
    	      this.capabilities = defaults.capabilities;
    	      this.model = defaults.model;
    	      this.provisioningState = defaults.provisioningState;
    	      this.raiPolicyName = defaults.raiPolicyName;
    	      this.rateLimits = defaults.rateLimits;
    	      this.scaleSettings = defaults.scaleSettings;
    	      this.versionUpgradeOption = defaults.versionUpgradeOption;
        }

        @CustomType.Setter
        public Builder callRateLimit(CallRateLimitResponse callRateLimit) {
            if (callRateLimit == null) {
              throw new MissingRequiredPropertyException("DeploymentPropertiesResponse", "callRateLimit");
            }
            this.callRateLimit = callRateLimit;
            return this;
        }
        @CustomType.Setter
        public Builder capabilities(Map capabilities) {
            if (capabilities == null) {
              throw new MissingRequiredPropertyException("DeploymentPropertiesResponse", "capabilities");
            }
            this.capabilities = capabilities;
            return this;
        }
        @CustomType.Setter
        public Builder model(@Nullable DeploymentModelResponse model) {

            this.model = model;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("DeploymentPropertiesResponse", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder raiPolicyName(@Nullable String raiPolicyName) {

            this.raiPolicyName = raiPolicyName;
            return this;
        }
        @CustomType.Setter
        public Builder rateLimits(List rateLimits) {
            if (rateLimits == null) {
              throw new MissingRequiredPropertyException("DeploymentPropertiesResponse", "rateLimits");
            }
            this.rateLimits = rateLimits;
            return this;
        }
        public Builder rateLimits(ThrottlingRuleResponse... rateLimits) {
            return rateLimits(List.of(rateLimits));
        }
        @CustomType.Setter
        public Builder scaleSettings(@Nullable DeploymentScaleSettingsResponse scaleSettings) {

            this.scaleSettings = scaleSettings;
            return this;
        }
        @CustomType.Setter
        public Builder versionUpgradeOption(@Nullable String versionUpgradeOption) {

            this.versionUpgradeOption = versionUpgradeOption;
            return this;
        }
        public DeploymentPropertiesResponse build() {
            final var _resultValue = new DeploymentPropertiesResponse();
            _resultValue.callRateLimit = callRateLimit;
            _resultValue.capabilities = capabilities;
            _resultValue.model = model;
            _resultValue.provisioningState = provisioningState;
            _resultValue.raiPolicyName = raiPolicyName;
            _resultValue.rateLimits = rateLimits;
            _resultValue.scaleSettings = scaleSettings;
            _resultValue.versionUpgradeOption = versionUpgradeOption;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy