Interface JobResource
public interface JobResource
An immutable client-side representation of JobResource.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the JobResource definition.static interface
The JobResource definition stages.static interface
The template for JobResource update.static interface
The JobResource update stages. -
Method Summary
Modifier and TypeMethodDescriptionbookShipmentPickUp
(ShipmentPickUpRequest shipmentPickUpRequest) Book shipment pick up.com.azure.core.http.rest.Response<ShipmentPickUpResponse>
bookShipmentPickUpWithResponse
(ShipmentPickUpRequest shipmentPickUpRequest, com.azure.core.util.Context context) Book shipment pick up.void
cancel
(CancellationReason cancellationReason) CancelJob.Gets the cancellationReason property: Reason for cancellation.com.azure.core.http.rest.Response<Void>
cancelWithResponse
(CancellationReason cancellationReason, com.azure.core.util.Context context) CancelJob.Gets the deliveryInfo property: Delivery Info of Job.Gets the deliveryType property: Delivery type of Job.details()
Gets the details property: Details of a job run.error()
Gets the error property: Top level error for the job.id()
Gets the id property: Id of the object.identity()
Gets the identity property: Msi identity of the resource.Gets the inner com.azure.resourcemanager.databox.fluent.models.JobResourceInner object.Gets the isCancellable property: Describes whether the job is cancellable or not.Gets the isCancellableWithoutFee property: Flag to indicate cancellation of scheduled job.Gets the isDeletable property: Describes whether the job is deletable or not.Gets the isPrepareToShipEnabled property: Is Prepare To Ship Enabled on this job.Gets the isShippingAddressEditable property: Describes whether the shipping address is editable or not.com.azure.core.http.rest.PagedIterable<UnencryptedCredentials>
This method gets the unencrypted secrets related to the job.com.azure.core.http.rest.PagedIterable<UnencryptedCredentials>
listCredentials
(com.azure.core.util.Context context) This method gets the unencrypted secrets related to the job.location()
Gets the location property: The geo-location where the resource lives.name()
Gets the name property: Name of the object.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.sku()
Gets the sku property: The sku type.Gets the startTime property: Time at which the job was started in UTC ISO 8601 format.status()
Gets the status property: Name of the stage which is in progress.com.azure.core.management.SystemData
Gets the systemData property: Metadata pertaining to creation and last modification of the resource.tags()
Gets the tags property: Resource tags.Gets the transferType property: Type of the data transfer.type()
Gets the type property: Type of the object.update()
Begins update for the JobResource resource.
-
Method Details
-
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.
-
name
String name()Gets the name property: Name of the object.- Returns:
- the name value.
-
id
String id()Gets the id property: Id of the object.- Returns:
- the id value.
-
type
String type()Gets the type property: Type of the object.- Returns:
- the type value.
-
systemData
com.azure.core.management.SystemData systemData()Gets the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
sku
Sku sku()Gets the sku property: The sku type.- Returns:
- the sku value.
-
identity
ResourceIdentity identity()Gets the identity property: Msi identity of the resource.- Returns:
- the identity value.
-
transferType
TransferType transferType()Gets the transferType property: Type of the data transfer.- Returns:
- the transferType value.
-
isCancellable
Boolean isCancellable()Gets the isCancellable property: Describes whether the job is cancellable or not.- Returns:
- the isCancellable value.
-
isDeletable
Boolean isDeletable()Gets the isDeletable property: Describes whether the job is deletable or not.- Returns:
- the isDeletable value.
-
isShippingAddressEditable
Boolean isShippingAddressEditable()Gets the isShippingAddressEditable property: Describes whether the shipping address is editable or not.- Returns:
- the isShippingAddressEditable value.
-
isPrepareToShipEnabled
Boolean isPrepareToShipEnabled()Gets the isPrepareToShipEnabled property: Is Prepare To Ship Enabled on this job.- Returns:
- the isPrepareToShipEnabled value.
-
status
StageName status()Gets the status property: Name of the stage which is in progress.- Returns:
- the status value.
-
startTime
OffsetDateTime startTime()Gets the startTime property: Time at which the job was started in UTC ISO 8601 format.- Returns:
- the startTime value.
-
error
CloudError error()Gets the error property: Top level error for the job.- Returns:
- the error value.
-
details
JobDetails details()Gets the details property: Details of a job run. This field will only be sent for expand details filter.- Returns:
- the details value.
-
cancellationReason
String cancellationReason()Gets the cancellationReason property: Reason for cancellation.- Returns:
- the cancellationReason value.
-
deliveryType
JobDeliveryType deliveryType()Gets the deliveryType property: Delivery type of Job.- Returns:
- the deliveryType value.
-
deliveryInfo
JobDeliveryInfo deliveryInfo()Gets the deliveryInfo property: Delivery Info of Job.- Returns:
- the deliveryInfo value.
-
isCancellableWithoutFee
Boolean isCancellableWithoutFee()Gets the isCancellableWithoutFee property: Flag to indicate cancellation of scheduled job.- Returns:
- the isCancellableWithoutFee 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
JobResourceInner innerModel()Gets the inner com.azure.resourcemanager.databox.fluent.models.JobResourceInner object.- Returns:
- the inner object.
-
update
JobResource.Update update()Begins update for the JobResource resource.- Returns:
- the stage of resource update.
-
refresh
JobResource 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.
-
bookShipmentPickUpWithResponse
com.azure.core.http.rest.Response<ShipmentPickUpResponse> bookShipmentPickUpWithResponse(ShipmentPickUpRequest shipmentPickUpRequest, com.azure.core.util.Context context) Book shipment pick up.- Parameters:
shipmentPickUpRequest
- Details of shipment pick up request.context
- The context to associate with this operation.- Returns:
- shipment pick up response along with
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.
-
bookShipmentPickUp
Book shipment pick up.- Parameters:
shipmentPickUpRequest
- Details of shipment pick up request.- Returns:
- shipment pick up 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.
-
cancelWithResponse
com.azure.core.http.rest.Response<Void> cancelWithResponse(CancellationReason cancellationReason, com.azure.core.util.Context context) CancelJob.- Parameters:
cancellationReason
- Reason for cancellation.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.
-
cancel
CancelJob.- Parameters:
cancellationReason
- Reason for cancellation.- 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.
-
listCredentials
com.azure.core.http.rest.PagedIterable<UnencryptedCredentials> listCredentials()This method gets the unencrypted secrets related to the job.- Returns:
- list of unencrypted credentials for accessing device as paginated response with
PagedIterable
. - 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.
-
listCredentials
com.azure.core.http.rest.PagedIterable<UnencryptedCredentials> listCredentials(com.azure.core.util.Context context) This method gets the unencrypted secrets related to the job.- Parameters:
context
- The context to associate with this operation.- Returns:
- list of unencrypted credentials for accessing device as paginated response with
PagedIterable
. - 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.
-