GenericResourceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. resources. fluent. models. GenericResourceInner
- com.
- com.
- com.
public class GenericResourceInner
extends Resource
Resource information.
Constructor Summary
Constructor | Description |
---|---|
GenericResourceInner() |
Creates an instance of Generic |
Method Summary
Modifier and Type | Method and Description |
---|---|
Extended |
extendedLocation()
Get the extended |
static
Generic |
fromJson(JsonReader jsonReader)
Reads an instance of Generic |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Identity |
identity()
Get the identity property: The identity of the resource. |
String |
kind()
Get the kind property: The kind of the resource. |
String |
managedBy()
Get the managed |
String |
name()
Get the name property: The name of the resource. |
Plan |
plan()
Get the plan property: The plan of the resource. |
Object |
properties()
Get the properties property: The resource properties. |
Sku |
sku()
Get the sku property: The SKU of the resource. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Generic |
withExtendedLocation(ExtendedLocation extendedLocation)
Set the extended |
Generic |
withIdentity(Identity identity)
Set the identity property: The identity of the resource. |
Generic |
withKind(String kind)
Set the kind property: The kind of the resource. |
Generic |
withLocation(String location) |
Generic |
withManagedBy(String managedBy)
Set the managed |
Generic |
withPlan(Plan plan)
Set the plan property: The plan of the resource. |
Generic |
withProperties(Object properties)
Set the properties property: The resource properties. |
Generic |
withSku(Sku sku)
Set the sku property: The SKU of the resource. |
Generic |
withTags(Map<String,String> tags) |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
GenericResourceInner
public GenericResourceInner()
Creates an instance of GenericResourceInner class.
Method Details
extendedLocation
public ExtendedLocation extendedLocation()
Get the extendedLocation property: Resource extended location.
Returns:
fromJson
public static GenericResourceInner fromJson(JsonReader jsonReader)
Reads an instance of GenericResourceInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
GenericResourceInner.id()Returns:
identity
public Identity identity()
Get the identity property: The identity of the resource.
Returns:
kind
public String kind()
Get the kind property: The kind of the resource.
Returns:
managedBy
public String managedBy()
Get the managedBy property: ID of the resource that manages this resource.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
GenericResourceInner.name()Returns:
plan
public Plan plan()
Get the plan property: The plan of the resource.
Returns:
properties
public Object properties()
Get the properties property: The resource properties.
Returns:
sku
public Sku sku()
Get the sku property: The SKU of the resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
GenericResourceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
GenericResourceInner.type()Returns:
validate
public void validate()
Validates the instance.
withExtendedLocation
public GenericResourceInner withExtendedLocation(ExtendedLocation extendedLocation)
Set the extendedLocation property: Resource extended location.
Parameters:
Returns:
withIdentity
public GenericResourceInner withIdentity(Identity identity)
Set the identity property: The identity of the resource.
Parameters:
Returns:
withKind
public GenericResourceInner withKind(String kind)
Set the kind property: The kind of the resource.
Parameters:
Returns:
withLocation
public GenericResourceInner withLocation(String location)
Overrides:
GenericResourceInner.withLocation(String location)Parameters:
withManagedBy
public GenericResourceInner withManagedBy(String managedBy)
Set the managedBy property: ID of the resource that manages this resource.
Parameters:
Returns:
withPlan
public GenericResourceInner withPlan(Plan plan)
Set the plan property: The plan of the resource.
Parameters:
Returns:
withProperties
public GenericResourceInner withProperties(Object properties)
Set the properties property: The resource properties.
Parameters:
Returns:
withSku
public GenericResourceInner withSku(Sku sku)
Set the sku property: The SKU of the resource.
Parameters:
Returns:
withTags
public GenericResourceInner withTags(Map
Overrides:
GenericResourceInner.withTags(Map<String,String> tags)Parameters:
Applies to
Azure SDK for Java