ResourceWithWritableName Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. models. ResourceWithWritableName
- com.
- com.
public class ResourceWithWritableName
extends ProxyResource
ARM resource.
Constructor Summary
Constructor | Description |
---|---|
ResourceWithWritableName() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: Resource name. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Resource |
withName(String name)
Set the name property: Resource name. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
ResourceWithWritableName
public ResourceWithWritableName()
Creates an instance of ResourceWithWritableName class.
Method Details
fromJson
public static ResourceWithWritableName fromJson(JsonReader jsonReader)
Reads an instance of ResourceWithWritableName from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ResourceWithWritableName.id()Returns:
name
public String name()
Get the name property: Resource name.
Overrides:
ResourceWithWritableName.name()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ResourceWithWritableName.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ResourceWithWritableName.type()Returns:
validate
public void validate()
Validates the instance.
withName
public ResourceWithWritableName withName(String name)
Set the name property: Resource name.
Parameters:
Returns:
Applies to
Azure SDK for Java