forked from Azure/azure-libraries-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR sql/resource-manager] Adding new value to VA baseline name (#199
) * Generated from 03645a856ba34f572618832814b410d8e2410ba2 Adding new value to VA baseline name Adding new value to VA baseline name * Generated from c9946efbfaf9f6a9f7765878a337784756ce951c Fix typo Fix typo * Generated from c3621b01ece4897d91763a7e4ba8d1e29d4d6832 Updating VulnerabilityAssessmentPolicyBaselineName * Generated from 5c8646bff054ea42bb05bef708e3c66c7d005c2e Fixed all comments
- Loading branch information
1 parent
8ece61d
commit 81577a3
Showing
2 changed files
with
99 additions
and
27 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
...in/java/com/microsoft/azure/management/sql/VulnerabilityAssessmentPolicyBaselineName.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 VulnerabilityAssessmentPolicyBaselineName. | ||
*/ | ||
public enum VulnerabilityAssessmentPolicyBaselineName { | ||
/** Enum value master. */ | ||
MASTER("master"), | ||
|
||
/** Enum value default. */ | ||
DEFAULT("default"); | ||
|
||
/** The actual serialized value for a VulnerabilityAssessmentPolicyBaselineName instance. */ | ||
private String value; | ||
|
||
VulnerabilityAssessmentPolicyBaselineName(String value) { | ||
this.value = value; | ||
} | ||
|
||
/** | ||
* Parses a serialized value to a VulnerabilityAssessmentPolicyBaselineName instance. | ||
* | ||
* @param value the serialized value to parse. | ||
* @return the parsed VulnerabilityAssessmentPolicyBaselineName object, or null if unable to parse. | ||
*/ | ||
@JsonCreator | ||
public static VulnerabilityAssessmentPolicyBaselineName fromString(String value) { | ||
VulnerabilityAssessmentPolicyBaselineName[] items = VulnerabilityAssessmentPolicyBaselineName.values(); | ||
for (VulnerabilityAssessmentPolicyBaselineName item : items) { | ||
if (item.toString().equalsIgnoreCase(value)) { | ||
return item; | ||
} | ||
} | ||
return null; | ||
} | ||
|
||
@JsonValue | ||
@Override | ||
public String toString() { | ||
return this.value; | ||
} | ||
} |
Oops, something went wrong.