Class ResourceModelWithAllowedPropertySet
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.desktopvirtualization.models.ResourceModelWithAllowedPropertySet
-
- Direct Known Subclasses:
ApplicationGroupInner,HostPoolInner,ScalingPlanInner,WorkspaceInner
public class ResourceModelWithAllowedPropertySet extends com.azure.core.management.ResourceThe resource model definition containing the full set of allowed properties for a resource. Except properties bag, there cannot be a top level property outside of this set.
-
-
Constructor Summary
Constructors Constructor Description ResourceModelWithAllowedPropertySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringetag()Get the etag property: The etag field is *not* required.ResourceModelWithAllowedPropertySetIdentityidentity()Get the identity property: The identity property.Stringkind()Get the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g.StringmanagedBy()Get the managedBy property: The fully qualified resource ID of the resource that manages this resource.ResourceModelWithAllowedPropertySetPlanplan()Get the plan property: The plan property.ResourceModelWithAllowedPropertySetSkusku()Get the sku property: The sku property.voidvalidate()Validates the instance.ResourceModelWithAllowedPropertySetwithIdentity(ResourceModelWithAllowedPropertySetIdentity identity)Set the identity property: The identity property.ResourceModelWithAllowedPropertySetwithKind(String kind)Set the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g.ResourceModelWithAllowedPropertySetwithLocation(String location)ResourceModelWithAllowedPropertySetwithManagedBy(String managedBy)Set the managedBy property: The fully qualified resource ID of the resource that manages this resource.ResourceModelWithAllowedPropertySetwithPlan(ResourceModelWithAllowedPropertySetPlan plan)Set the plan property: The plan property.ResourceModelWithAllowedPropertySetwithSku(ResourceModelWithAllowedPropertySetSku sku)Set the sku property: The sku property.ResourceModelWithAllowedPropertySetwithTags(Map<String,String> tags)
-
-
-
Method Detail
-
managedBy
public String managedBy()
Get the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.- Returns:
- the managedBy value.
-
withManagedBy
public ResourceModelWithAllowedPropertySet withManagedBy(String managedBy)
Set the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.- Parameters:
managedBy- the managedBy value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
kind
public String kind()
Get the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.- Returns:
- the kind value.
-
withKind
public ResourceModelWithAllowedPropertySet withKind(String kind)
Set the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.- Parameters:
kind- the kind value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
etag
public String etag()
Get the etag property: The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.- Returns:
- the etag value.
-
identity
public ResourceModelWithAllowedPropertySetIdentity identity()
Get the identity property: The identity property.- Returns:
- the identity value.
-
withIdentity
public ResourceModelWithAllowedPropertySet withIdentity(ResourceModelWithAllowedPropertySetIdentity identity)
Set the identity property: The identity property.- Parameters:
identity- the identity value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
sku
public ResourceModelWithAllowedPropertySetSku sku()
Get the sku property: The sku property.- Returns:
- the sku value.
-
withSku
public ResourceModelWithAllowedPropertySet withSku(ResourceModelWithAllowedPropertySetSku sku)
Set the sku property: The sku property.- Parameters:
sku- the sku value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
plan
public ResourceModelWithAllowedPropertySetPlan plan()
Get the plan property: The plan property.- Returns:
- the plan value.
-
withPlan
public ResourceModelWithAllowedPropertySet withPlan(ResourceModelWithAllowedPropertySetPlan plan)
Set the plan property: The plan property.- Parameters:
plan- the plan value to set.- Returns:
- the ResourceModelWithAllowedPropertySet object itself.
-
withLocation
public ResourceModelWithAllowedPropertySet withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public ResourceModelWithAllowedPropertySet withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-