public class GenericResourceInner
extends com.azure.core.management.Resource
| Constructor and Description |
|---|
GenericResourceInner() |
| Modifier and Type | Method and Description |
|---|---|
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 managedBy property: ID of the resource that manages this 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.
|
void |
validate()
Validates the instance.
|
GenericResourceInner |
withIdentity(Identity identity)
Set the identity property: The identity of the resource.
|
GenericResourceInner |
withKind(String kind)
Set the kind property: The kind of the resource.
|
GenericResourceInner |
withLocation(String location) |
GenericResourceInner |
withManagedBy(String managedBy)
Set the managedBy property: ID of the resource that manages this resource.
|
GenericResourceInner |
withPlan(Plan plan)
Set the plan property: The plan of the resource.
|
GenericResourceInner |
withProperties(Object properties)
Set the properties property: The resource properties.
|
GenericResourceInner |
withSku(Sku sku)
Set the sku property: The SKU of the resource.
|
GenericResourceInner |
withTags(Map<String,String> tags) |
public Plan plan()
public GenericResourceInner withPlan(Plan plan)
plan - the plan value to set.public Object properties()
public GenericResourceInner withProperties(Object properties)
properties - the properties value to set.public String kind()
public GenericResourceInner withKind(String kind)
kind - the kind value to set.public String managedBy()
public GenericResourceInner withManagedBy(String managedBy)
managedBy - the managedBy value to set.public Sku sku()
public GenericResourceInner withSku(Sku sku)
sku - the sku value to set.public Identity identity()
public GenericResourceInner withIdentity(Identity identity)
identity - the identity value to set.public GenericResourceInner withLocation(String location)
withLocation in class com.azure.core.management.Resourcepublic GenericResourceInner withTags(Map<String,String> tags)
withTags in class com.azure.core.management.Resourcepublic void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.