ServiceResourceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. cosmos. models. ArmProxyResource - com.
azure. resourcemanager. cosmos. fluent. models. ServiceResourceInner
- com.
- com.
- com.
public final class ServiceResourceInner
extends ArmProxyResource
Properties for the database account.
Constructor Summary
Constructor | Description |
---|---|
ServiceResourceInner() |
Creates an instance of Service |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Service |
fromJson(JsonReader jsonReader)
Reads an instance of Service |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
Service |
properties()
Get the properties property: Services response resource. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Service |
withProperties(ServiceResourceProperties properties)
Set the properties property: Services response resource. |
Methods inherited from ArmProxyResource
Methods inherited from java.lang.Object
Constructor Details
ServiceResourceInner
public ServiceResourceInner()
Creates an instance of ServiceResourceInner class.
Method Details
fromJson
public static ServiceResourceInner fromJson(JsonReader jsonReader)
Reads an instance of ServiceResourceInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ServiceResourceInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ServiceResourceInner.name()Returns:
properties
public ServiceResourceProperties properties()
Get the properties property: Services response resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ServiceResourceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ServiceResourceInner.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
ServiceResourceInner.validate()withProperties
public ServiceResourceInner withProperties(ServiceResourceProperties properties)
Set the properties property: Services response resource.
Parameters:
Returns:
Applies to
Azure SDK for Java