Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* 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.sql;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for SecurityAlertState.
*/
public enum SecurityAlertState {
/** Enum value Enabled. */
ENABLED("Enabled"),

/** Enum value Disabled. */
DISABLED("Disabled");

/** The actual serialized value for a SecurityAlertState instance. */
private String value;

SecurityAlertState(String value) {
this.value = value;
}

/**
* Parses a serialized value to a SecurityAlertState instance.
*
* @param value the serialized value to parse.
* @return the parsed SecurityAlertState object, or null if unable to parse.
*/
@JsonCreator
public static SecurityAlertState fromString(String value) {
SecurityAlertState[] items = SecurityAlertState.values();
for (SecurityAlertState item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}

Large diffs are not rendered by default.

Loading