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

com.microsoft.azure.management.cognitiveservices.implementation.CognitiveServicesAccountInner Maven / Gradle / Ivy

There is a newer version: 1.10.0-beta
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.management.cognitiveservices.implementation;

import com.microsoft.azure.management.cognitiveservices.ProvisioningState;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

/**
 * Cognitive Services Account is an Azure resource representing the provisioned
 * account, its type, location and SKU.
 */
@JsonFlatten
public class CognitiveServicesAccountInner {
    /**
     * Entity Tag.
     */
    @JsonProperty(value = "etag")
    private String etag;

    /**
     * The id of the created account.
     */
    @JsonProperty(value = "id")
    private String id;

    /**
     * Type of cognitive service account.
     */
    @JsonProperty(value = "kind")
    private String kind;

    /**
     * The location of the resource.
     */
    @JsonProperty(value = "location")
    private String location;

    /**
     * The name of the created account.
     */
    @JsonProperty(value = "name")
    private String name;

    /**
     * Gets the status of the cognitive services account at the time the
     * operation was called. Possible values include: 'Creating',
     * 'ResolvingDNS', 'Succeeded', 'Failed'.
     */
    @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
    private ProvisioningState provisioningState;

    /**
     * Endpoint of the created account.
     */
    @JsonProperty(value = "properties.endpoint")
    private String endpoint;

    /**
     * The internal identifier.
     */
    @JsonProperty(value = "properties.internalId")
    private String internalId;

    /**
     * The SKU of Cognitive Services account.
     */
    @JsonProperty(value = "sku")
    private SkuInner sku;

    /**
     * Gets or sets a list of key value pairs that describe the resource. These
     * tags can be used in viewing and grouping this resource (across resource
     * groups). A maximum of 15 tags can be provided for a resource. Each tag
     * must have a key no greater than 128 characters and value no greater than
     * 256 characters.
     */
    @JsonProperty(value = "tags")
    private Map tags;

    /**
     * Resource type.
     */
    @JsonProperty(value = "type")
    private String type;

    /**
     * Get the etag value.
     *
     * @return the etag value
     */
    public String etag() {
        return this.etag;
    }

    /**
     * Set the etag value.
     *
     * @param etag the etag value to set
     * @return the CognitiveServicesAccountInner object itself.
     */
    public CognitiveServicesAccountInner withEtag(String etag) {
        this.etag = etag;
        return this;
    }

    /**
     * Get the id value.
     *
     * @return the id value
     */
    public String id() {
        return this.id;
    }

    /**
     * Set the id value.
     *
     * @param id the id value to set
     * @return the CognitiveServicesAccountInner object itself.
     */
    public CognitiveServicesAccountInner withId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get the kind value.
     *
     * @return the kind value
     */
    public String kind() {
        return this.kind;
    }

    /**
     * Set the kind value.
     *
     * @param kind the kind value to set
     * @return the CognitiveServicesAccountInner object itself.
     */
    public CognitiveServicesAccountInner withKind(String kind) {
        this.kind = kind;
        return this;
    }

    /**
     * Get the location value.
     *
     * @return the location value
     */
    public String location() {
        return this.location;
    }

    /**
     * Set the location value.
     *
     * @param location the location value to set
     * @return the CognitiveServicesAccountInner object itself.
     */
    public CognitiveServicesAccountInner withLocation(String location) {
        this.location = location;
        return this;
    }

    /**
     * Get the name value.
     *
     * @return the name value
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name value.
     *
     * @param name the name value to set
     * @return the CognitiveServicesAccountInner object itself.
     */
    public CognitiveServicesAccountInner withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the provisioningState value.
     *
     * @return the provisioningState value
     */
    public ProvisioningState provisioningState() {
        return this.provisioningState;
    }

    /**
     * Get the endpoint value.
     *
     * @return the endpoint value
     */
    public String endpoint() {
        return this.endpoint;
    }

    /**
     * Set the endpoint value.
     *
     * @param endpoint the endpoint value to set
     * @return the CognitiveServicesAccountInner object itself.
     */
    public CognitiveServicesAccountInner withEndpoint(String endpoint) {
        this.endpoint = endpoint;
        return this;
    }

    /**
     * Get the internalId value.
     *
     * @return the internalId value
     */
    public String internalId() {
        return this.internalId;
    }

    /**
     * Set the internalId value.
     *
     * @param internalId the internalId value to set
     * @return the CognitiveServicesAccountInner object itself.
     */
    public CognitiveServicesAccountInner withInternalId(String internalId) {
        this.internalId = internalId;
        return this;
    }

    /**
     * Get the sku value.
     *
     * @return the sku value
     */
    public SkuInner sku() {
        return this.sku;
    }

    /**
     * Set the sku value.
     *
     * @param sku the sku value to set
     * @return the CognitiveServicesAccountInner object itself.
     */
    public CognitiveServicesAccountInner withSku(SkuInner sku) {
        this.sku = sku;
        return this;
    }

    /**
     * Get the tags value.
     *
     * @return the tags value
     */
    public Map tags() {
        return this.tags;
    }

    /**
     * Set the tags value.
     *
     * @param tags the tags value to set
     * @return the CognitiveServicesAccountInner object itself.
     */
    public CognitiveServicesAccountInner withTags(Map tags) {
        this.tags = tags;
        return this;
    }

    /**
     * Get the type value.
     *
     * @return the type value
     */
    public String type() {
        return this.type;
    }

    /**
     * Set the type value.
     *
     * @param type the type value to set
     * @return the CognitiveServicesAccountInner object itself.
     */
    public CognitiveServicesAccountInner withType(String type) {
        this.type = type;
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy