com.microsoft.azure.management.powerbi.implementation.CheckNameResponseInner 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.implementation;
import com.microsoft.azure.management.powerbi.CheckNameReason;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The CheckNameResponseInner model.
*/
public class CheckNameResponseInner {
/**
* Specifies a Boolean value that indicates whether the specified Power BI
* Workspace Collection name is available to use.
*/
@JsonProperty(value = "nameAvailable")
private Boolean nameAvailable;
/**
* Reason why the workspace collection name cannot be used. Possible values
* include: 'Unavailable', 'Invalid'.
*/
@JsonProperty(value = "reason")
private CheckNameReason reason;
/**
* Message indicating an unavailable name due to a conflict, or a
* description of the naming rules that are violated.
*/
@JsonProperty(value = "message")
private String message;
/**
* Get the nameAvailable value.
*
* @return the nameAvailable value
*/
public Boolean nameAvailable() {
return this.nameAvailable;
}
/**
* Set the nameAvailable value.
*
* @param nameAvailable the nameAvailable value to set
* @return the CheckNameResponseInner object itself.
*/
public CheckNameResponseInner withNameAvailable(Boolean nameAvailable) {
this.nameAvailable = nameAvailable;
return this;
}
/**
* Get the reason value.
*
* @return the reason value
*/
public CheckNameReason reason() {
return this.reason;
}
/**
* Set the reason value.
*
* @param reason the reason value to set
* @return the CheckNameResponseInner object itself.
*/
public CheckNameResponseInner withReason(CheckNameReason reason) {
this.reason = reason;
return this;
}
/**
* Get the message value.
*
* @return the message value
*/
public String message() {
return this.message;
}
/**
* Set the message value.
*
* @param message the message value to set
* @return the CheckNameResponseInner object itself.
*/
public CheckNameResponseInner withMessage(String message) {
this.message = message;
return this;
}
}