com.azure.resourcemanager.cosmos.models.ConnectionState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-cosmos Show documentation
Show all versions of azure-resourcemanager-cosmos Show documentation
This package contains Microsoft Azure CosmosDB SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.cosmos.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/**
* The kind of connection error that occurred.
*/
public final class ConnectionState extends ExpandableStringEnum {
/**
* Static value Unknown for ConnectionState.
*/
public static final ConnectionState UNKNOWN = fromString("Unknown");
/**
* Static value OK for ConnectionState.
*/
public static final ConnectionState OK = fromString("OK");
/**
* Static value OperatorToDataCenterNetworkError for ConnectionState.
*/
public static final ConnectionState OPERATOR_TO_DATA_CENTER_NETWORK_ERROR
= fromString("OperatorToDataCenterNetworkError");
/**
* Static value DatacenterToDatacenterNetworkError for ConnectionState.
*/
public static final ConnectionState DATACENTER_TO_DATACENTER_NETWORK_ERROR
= fromString("DatacenterToDatacenterNetworkError");
/**
* Static value InternalOperatorToDataCenterCertificateError for ConnectionState.
*/
public static final ConnectionState INTERNAL_OPERATOR_TO_DATA_CENTER_CERTIFICATE_ERROR
= fromString("InternalOperatorToDataCenterCertificateError");
/**
* Static value InternalError for ConnectionState.
*/
public static final ConnectionState INTERNAL_ERROR = fromString("InternalError");
/**
* Creates a new instance of ConnectionState value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public ConnectionState() {
}
/**
* Creates or finds a ConnectionState from its string representation.
*
* @param name a name to look for.
* @return the corresponding ConnectionState.
*/
@JsonCreator
public static ConnectionState fromString(String name) {
return fromString(name, ConnectionState.class);
}
/**
* Gets known ConnectionState values.
*
* @return known ConnectionState values.
*/
public static Collection values() {
return values(ConnectionState.class);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy