Class GenericResource
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.managedapplications.models.GenericResource
- Direct Known Subclasses:
ApplicationDefinitionInner
,ApplicationInner
,ApplicationPatchable
public class GenericResource
extends com.azure.core.management.Resource
Resource information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionidentity()
Get the identity property: The identity of the resource.Get the managedBy property: ID of the resource that manages this resource.sku()
Get the sku property: The SKU of the resource.void
validate()
Validates the instance.withIdentity
(Identity identity) Set the identity property: The identity of the resource.withLocation
(String location) withManagedBy
(String managedBy) Set the managedBy property: ID of the resource that manages this resource.Set the sku property: The SKU of the resource.Methods inherited from class com.azure.core.management.Resource
location, tags
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
GenericResource
public GenericResource()Creates an instance of GenericResource class.
-
-
Method Details
-
managedBy
Get the managedBy property: ID of the resource that manages this resource.- Returns:
- the managedBy value.
-
withManagedBy
Set the managedBy property: ID of the resource that manages this resource.- Parameters:
managedBy
- the managedBy value to set.- Returns:
- the GenericResource object itself.
-
sku
Get the sku property: The SKU of the resource.- Returns:
- the sku value.
-
withSku
Set the sku property: The SKU of the resource.- Parameters:
sku
- the sku value to set.- Returns:
- the GenericResource object itself.
-
identity
Get the identity property: The identity of the resource.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The identity of the resource.- Parameters:
identity
- the identity value to set.- Returns:
- the GenericResource object itself.
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-