Class GenericResourceExpandedInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.resources.fluent.models.GenericResourceInner
-
- com.azure.resourcemanager.resources.fluent.models.GenericResourceExpandedInner
-
public final class GenericResourceExpandedInner extends GenericResourceInner
Resource information.
-
-
Constructor Summary
Constructors Constructor Description GenericResourceExpandedInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimechangedTime()Get the changedTime property: The changed time of the resource.OffsetDateTimecreatedTime()Get the createdTime property: The created time of the resource.StringprovisioningState()Get the provisioningState property: The provisioning state of the resource.voidvalidate()Validates the instance.GenericResourceExpandedInnerwithExtendedLocation(ExtendedLocation extendedLocation)Set the extendedLocation property: Resource extended location.GenericResourceExpandedInnerwithIdentity(Identity identity)Set the identity property: The identity of the resource.GenericResourceExpandedInnerwithKind(String kind)Set the kind property: The kind of the resource.GenericResourceExpandedInnerwithLocation(String location)GenericResourceExpandedInnerwithManagedBy(String managedBy)Set the managedBy property: ID of the resource that manages this resource.GenericResourceExpandedInnerwithPlan(Plan plan)Set the plan property: The plan of the resource.GenericResourceExpandedInnerwithProperties(Object properties)Set the properties property: The resource properties.GenericResourceExpandedInnerwithSku(Sku sku)Set the sku property: The SKU of the resource.GenericResourceExpandedInnerwithTags(Map<String,String> tags)-
Methods inherited from class com.azure.resourcemanager.resources.fluent.models.GenericResourceInner
extendedLocation, identity, kind, managedBy, plan, properties, sku
-
-
-
-
Method Detail
-
createdTime
public OffsetDateTime createdTime()
Get the createdTime property: The created time of the resource. This is only present if requested via the $expand query parameter.- Returns:
- the createdTime value.
-
changedTime
public OffsetDateTime changedTime()
Get the changedTime property: The changed time of the resource. This is only present if requested via the $expand query parameter.- Returns:
- the changedTime value.
-
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning state of the resource. This is only present if requested via the $expand query parameter.- Returns:
- the provisioningState value.
-
withPlan
public GenericResourceExpandedInner withPlan(Plan plan)
Set the plan property: The plan of the resource.- Overrides:
withPlanin classGenericResourceInner- Parameters:
plan- the plan value to set.- Returns:
- the GenericResourceInner object itself.
-
withProperties
public GenericResourceExpandedInner withProperties(Object properties)
Set the properties property: The resource properties.- Overrides:
withPropertiesin classGenericResourceInner- Parameters:
properties- the properties value to set.- Returns:
- the GenericResourceInner object itself.
-
withKind
public GenericResourceExpandedInner withKind(String kind)
Set the kind property: The kind of the resource.- Overrides:
withKindin classGenericResourceInner- Parameters:
kind- the kind value to set.- Returns:
- the GenericResourceInner object itself.
-
withManagedBy
public GenericResourceExpandedInner withManagedBy(String managedBy)
Set the managedBy property: ID of the resource that manages this resource.- Overrides:
withManagedByin classGenericResourceInner- Parameters:
managedBy- the managedBy value to set.- Returns:
- the GenericResourceInner object itself.
-
withSku
public GenericResourceExpandedInner withSku(Sku sku)
Set the sku property: The SKU of the resource.- Overrides:
withSkuin classGenericResourceInner- Parameters:
sku- the sku value to set.- Returns:
- the GenericResourceInner object itself.
-
withIdentity
public GenericResourceExpandedInner withIdentity(Identity identity)
Set the identity property: The identity of the resource.- Overrides:
withIdentityin classGenericResourceInner- Parameters:
identity- the identity value to set.- Returns:
- the GenericResourceInner object itself.
-
withExtendedLocation
public GenericResourceExpandedInner withExtendedLocation(ExtendedLocation extendedLocation)
Set the extendedLocation property: Resource extended location.- Overrides:
withExtendedLocationin classGenericResourceInner- Parameters:
extendedLocation- the extendedLocation value to set.- Returns:
- the GenericResourceInner object itself.
-
withLocation
public GenericResourceExpandedInner withLocation(String location)
- Overrides:
withLocationin classGenericResourceInner
-
withTags
public GenericResourceExpandedInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classGenericResourceInner
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classGenericResourceInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-