Interface ProtectionContainerResource
public interface ProtectionContainerResource
An immutable client-side representation of ProtectionContainerResource.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the ProtectionContainerResource definition.static interface
The ProtectionContainerResource definition stages.static interface
The template for ProtectionContainerResource update.static interface
The ProtectionContainerResource update stages. -
Method Summary
Modifier and TypeMethodDescriptionetag()
Gets the etag property: Optional ETag.id()
Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ProtectionContainerResourceInner object.void
inquire()
Inquires all the protectable items under the given container.com.azure.core.http.rest.Response<Void>
inquireWithResponse
(String filter, com.azure.core.util.Context context) Inquires all the protectable items under the given container.location()
Gets the location property: The geo-location where the resource lives.name()
Gets the name property: The name of the resource.Gets the properties property: ProtectionContainerResource properties.refresh()
Refreshes the resource to sync with Azure.refresh
(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.com.azure.core.management.Region
region()
Gets the region of the resource.Gets the name of the resource region.Gets the name of the resource group.tags()
Gets the tags property: Resource tags.type()
Gets the type property: The type of the resource.update()
Begins update for the ProtectionContainerResource resource.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
location
String location()Gets the location property: The geo-location where the resource lives.- Returns:
- the location value.
-
tags
Gets the tags property: Resource tags.- Returns:
- the tags value.
-
properties
ProtectionContainer properties()Gets the properties property: ProtectionContainerResource properties.- Returns:
- the properties value.
-
etag
String etag()Gets the etag property: Optional ETag.- Returns:
- the etag value.
-
region
com.azure.core.management.Region region()Gets the region of the resource.- Returns:
- the region of the resource.
-
regionName
String regionName()Gets the name of the resource region.- Returns:
- the name of the resource region.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
ProtectionContainerResourceInner innerModel()Gets the inner com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ProtectionContainerResourceInner object.- Returns:
- the inner object.
-
update
ProtectionContainerResource.Update update()Begins update for the ProtectionContainerResource resource.- Returns:
- the stage of resource update.
-
refresh
ProtectionContainerResource refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context
- The context to associate with this operation.- Returns:
- the refreshed resource.
-
inquireWithResponse
com.azure.core.http.rest.Response<Void> inquireWithResponse(String filter, com.azure.core.util.Context context) Inquires all the protectable items under the given container.This is an async operation and the results should be tracked using location header or Azure-async-url.
- Parameters:
filter
- OData filter options.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
inquire
void inquire()Inquires all the protectable items under the given container.This is an async operation and the results should be tracked using location header or Azure-async-url.
- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-