ServiceResourceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. servicefabric. fluent. models. ServiceResourceInner
- com.
- com.
public final class ServiceResourceInner
extends ProxyResource
The service resource.
Constructor Summary
| Constructor | Description |
|---|---|
| ServiceResourceInner() |
Creates an instance of Service |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
etag()
Get the etag property: Azure resource etag. |
|
static
Service |
fromJson(JsonReader jsonReader)
Reads an instance of Service |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
location()
Get the location property: It will be deprecated in New API, resource location depends on the parent resource. |
| String |
name()
Get the name property: The name of the resource. |
|
Service |
properties()
Get the properties property: The service resource properties. |
|
System |
systemData()
Get the system |
| Map<String,String> |
tags()
Get the tags property: Azure resource tags. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Service |
withLocation(String location)
Set the location property: It will be deprecated in New API, resource location depends on the parent resource. |
|
Service |
withProperties(ServiceResourceProperties properties)
Set the properties property: The service resource properties. |
|
Service |
withTags(Map<String,String> tags)
Set the tags property: Azure resource tags. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
ServiceResourceInner
public ServiceResourceInner()
Creates an instance of ServiceResourceInner class.
Method Details
etag
public String etag()
Get the etag property: Azure resource etag.
Returns:
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:
location
public String location()
Get the location property: It will be deprecated in New API, resource location depends on the parent resource.
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: The service resource properties.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.
Returns:
tags
public Map<String,String> tags()
Get the tags property: Azure resource tags.
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.
withLocation
public ServiceResourceInner withLocation(String location)
Set the location property: It will be deprecated in New API, resource location depends on the parent resource.
Parameters:
Returns:
withProperties
public ServiceResourceInner withProperties(ServiceResourceProperties properties)
Set the properties property: The service resource properties.
Parameters:
Returns:
withTags
public ServiceResourceInner withTags(Map<String,String> tags)
Set the tags property: Azure resource tags.
Parameters:
Returns: