Class CheckResourceNameResultInner
java.lang.Object
com.azure.resourcemanager.resources.fluent.models.CheckResourceNameResultInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CheckResourceNameResultInner>
public final class CheckResourceNameResultInner
extends Object
implements com.azure.json.JsonSerializable<CheckResourceNameResultInner>
Resource Name valid if not a reserved word, does not contain a reserved word and does not start with a reserved word.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CheckResourceNameResultInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CheckResourceNameResultInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CheckResourceNameResultInner from the JsonReader.name()Get the name property: Name of Resource.status()Get the status property: Is the resource name Allowed or Reserved.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of Resource.voidvalidate()Validates the instance.Set the name property: Name of Resource.withStatus(ResourceNameStatus status) Set the status property: Is the resource name Allowed or Reserved.Set the type property: Type of Resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CheckResourceNameResultInner
public CheckResourceNameResultInner()Creates an instance of CheckResourceNameResultInner class.
-
-
Method Details
-
name
Get the name property: Name of Resource.- Returns:
- the name value.
-
withName
Set the name property: Name of Resource.- Parameters:
name- the name value to set.- Returns:
- the CheckResourceNameResultInner object itself.
-
type
Get the type property: Type of Resource.- Returns:
- the type value.
-
withType
Set the type property: Type of Resource.- Parameters:
type- the type value to set.- Returns:
- the CheckResourceNameResultInner object itself.
-
status
Get the status property: Is the resource name Allowed or Reserved.- Returns:
- the status value.
-
withStatus
Set the status property: Is the resource name Allowed or Reserved.- Parameters:
status- the status value to set.- Returns:
- the CheckResourceNameResultInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CheckResourceNameResultInner>- Throws:
IOException
-
fromJson
public static CheckResourceNameResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CheckResourceNameResultInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CheckResourceNameResultInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the CheckResourceNameResultInner.
-