com.microsoft.azure.management.powerbi.CheckNameReason Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-powerbi Show documentation
Show all versions of azure-mgmt-powerbi Show documentation
This package contains Microsoft PowerBI Management SDK.
/**
* 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.powerbi;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Defines values for CheckNameReason.
*/
public final class CheckNameReason {
/** Static value Unavailable for CheckNameReason. */
public static final CheckNameReason UNAVAILABLE = new CheckNameReason("Unavailable");
/** Static value Invalid for CheckNameReason. */
public static final CheckNameReason INVALID = new CheckNameReason("Invalid");
private String value;
/**
* Creates a custom value for CheckNameReason.
* @param value the custom value
*/
public CheckNameReason(String value) {
this.value = value;
}
@JsonValue
@Override
public String toString() {
return value;
}
@Override
public int hashCode() {
return value.hashCode();
}
@Override
public boolean equals(Object obj) {
if (!(obj instanceof CheckNameReason)) {
return false;
}
if (obj == this) {
return true;
}
CheckNameReason rhs = (CheckNameReason) obj;
if (value == null) {
return rhs.value == null;
} else {
return value.equals(rhs.value);
}
}
}