com.azure.resourcemanager.mediaservices.fluent.models.EntityNameAvailabilityCheckOutputInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-mediaservices Show documentation
Show all versions of azure-resourcemanager-mediaservices Show documentation
This package contains Microsoft Azure SDK for MediaServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. This Swagger was generated by the API Framework. Package tag package-account-2023-01.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.mediaservices.fluent.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The response from the check name availability request. */
@Fluent
public final class EntityNameAvailabilityCheckOutputInner {
/*
* Specifies if the name is available.
*/
@JsonProperty(value = "nameAvailable", required = true)
private boolean nameAvailable;
/*
* Specifies the reason if the name is not available.
*/
@JsonProperty(value = "reason")
private String reason;
/*
* Specifies the detailed reason if the name is not available.
*/
@JsonProperty(value = "message")
private String message;
/**
* Get the nameAvailable property: Specifies if the name is available.
*
* @return the nameAvailable value.
*/
public boolean nameAvailable() {
return this.nameAvailable;
}
/**
* Set the nameAvailable property: Specifies if the name is available.
*
* @param nameAvailable the nameAvailable value to set.
* @return the EntityNameAvailabilityCheckOutputInner object itself.
*/
public EntityNameAvailabilityCheckOutputInner withNameAvailable(boolean nameAvailable) {
this.nameAvailable = nameAvailable;
return this;
}
/**
* Get the reason property: Specifies the reason if the name is not available.
*
* @return the reason value.
*/
public String reason() {
return this.reason;
}
/**
* Set the reason property: Specifies the reason if the name is not available.
*
* @param reason the reason value to set.
* @return the EntityNameAvailabilityCheckOutputInner object itself.
*/
public EntityNameAvailabilityCheckOutputInner withReason(String reason) {
this.reason = reason;
return this;
}
/**
* Get the message property: Specifies the detailed reason if the name is not available.
*
* @return the message value.
*/
public String message() {
return this.message;
}
/**
* Set the message property: Specifies the detailed reason if the name is not available.
*
* @param message the message value to set.
* @return the EntityNameAvailabilityCheckOutputInner object itself.
*/
public EntityNameAvailabilityCheckOutputInner withMessage(String message) {
this.message = message;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy