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
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
Resource information.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GenericResourceExpandedInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the changedTime property: The changed time of the resource.Get the createdTime property: The created time of the resource.static GenericResourceExpandedInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GenericResourceExpandedInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.name()Get the name property: The name of the resource.Get the provisioningState property: The provisioning state of the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withExtendedLocation(ExtendedLocation extendedLocation) Set the extendedLocation property: Resource extended location.withIdentity(Identity identity) Set the identity property: The identity of the resource.Set the kind property: The kind of the resource.withLocation(String location) withManagedBy(String managedBy) Set the managedBy property: ID of the resource that manages this resource.Set the plan property: The plan of the resource.withProperties(Object properties) Set the properties property: The resource properties.Set the sku property: The SKU of the resource.Methods inherited from class com.azure.resourcemanager.resources.fluent.models.GenericResourceInner
extendedLocation, identity, kind, managedBy, plan, properties, skuMethods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GenericResourceExpandedInner
public GenericResourceExpandedInner()Creates an instance of GenericResourceExpandedInner class.
-
-
Method Details
-
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
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
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.
-
type
Get the type property: The type of the resource.- Overrides:
typein classGenericResourceInner- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classGenericResourceInner- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classGenericResourceInner- Returns:
- the id value.
-
withPlan
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
Set the properties property: The resource properties.- Overrides:
withPropertiesin classGenericResourceInner- Parameters:
properties- the properties value to set.- Returns:
- the GenericResourceInner object itself.
-
withKind
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
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
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
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
Set the extendedLocation property: Resource extended location.- Overrides:
withExtendedLocationin classGenericResourceInner- Parameters:
extendedLocation- the extendedLocation value to set.- Returns:
- the GenericResourceInner object itself.
-
withLocation
- Overrides:
withLocationin classGenericResourceInner
-
withTags
- Overrides:
withTagsin classGenericResourceInner
-
validate
public void validate()Validates the instance.- Overrides:
validatein classGenericResourceInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classGenericResourceInner- Throws:
IOException
-
fromJson
public static GenericResourceExpandedInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GenericResourceExpandedInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GenericResourceExpandedInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the GenericResourceExpandedInner.
-