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.
/** * 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.cosmosdb; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; import com.microsoft.rest.ExpandableStringEnum;
Defines values for DataType.
/** * Defines values for DataType. */
public final class DataType extends ExpandableStringEnum<DataType> {
Static value String for DataType.
/** Static value String for DataType. */
public static final DataType STRING = fromString("String");
Static value Number for DataType.
/** Static value Number for DataType. */
public static final DataType NUMBER = fromString("Number");
Static value Point for DataType.
/** Static value Point for DataType. */
public static final DataType POINT = fromString("Point");
Static value Polygon for DataType.
/** Static value Polygon for DataType. */
public static final DataType POLYGON = fromString("Polygon");
Static value LineString for DataType.
/** Static value LineString for DataType. */
public static final DataType LINE_STRING = fromString("LineString");
Static value MultiPolygon for DataType.
/** Static value MultiPolygon for DataType. */
public static final DataType MULTI_POLYGON = fromString("MultiPolygon");
Creates or finds a DataType from its string representation.
Params:
  • name – a name to look for
Returns:the corresponding DataType
/** * Creates or finds a DataType from its string representation. * @param name a name to look for * @return the corresponding DataType */
@JsonCreator public static DataType fromString(String name) { return fromString(name, DataType.class); }
Returns:known DataType values
/** * @return known DataType values */
public static Collection<DataType> values() { return values(DataType.class); } }