public static class Job.Creator extends EntityOperationSingleResultBase<JobInfo> implements EntityCreateOperation<JobInfo>
EntityOperationBase.EntityIdUriBuilder, EntityOperationBase.EntityUriBuilder
Constructor and Description |
---|
Job.Creator()
Instantiates a new creator.
|
Modifier and Type | Method and Description |
---|---|
Job.Creator |
addInputMediaAsset(String assetId)
Adds the input media asset.
|
Job.Creator |
addJobNotificationSubscription(JobNotificationSubscription jobNotificationSubscription)
Adds the job notification subscription.
|
Job.Creator |
addTaskCreator(Task.CreateBatchOperation taskCreateBatchOperation)
Adds the task creator.
|
javax.ws.rs.core.MediaType |
getContentType()
Get the MIME type for the content that's being sent to the server.
|
List<String> |
getInputMediaAssets()
Gets the input media assets.
|
List<JobNotificationSubscription> |
getJobNotificationSubscription()
Gets the job notification subscription.
|
String |
getName()
Gets the name.
|
Integer |
getPriority()
Gets the priority.
|
Object |
getRequestContents()
Get the object to be sent to the server containing
the request data for entity creation.
|
Class |
getResponseClass()
Get the Java class object for the type that the response should
be unmarshalled into.
|
List<Task.CreateBatchOperation> |
getTaskCreators()
Gets the task creators.
|
String |
getUri()
Get the URI the creation request should be sent to.
|
Object |
processResponse(Object clientResponse)
Process response process.
|
Job.Creator |
setName(String name)
Set the name of the job to be created.
|
Job.Creator |
setPriority(Integer priority)
Sets the priority.
|
getAcceptType, getProxyData, setProxyData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAcceptType, setProxyData
public Object getRequestContents() throws ServiceException
EntityCreateOperation
getRequestContents
in interface EntityCreateOperation<JobInfo>
ServiceException
- the service exceptionpublic Class getResponseClass()
EntityOperationSingleResult
getResponseClass
in interface EntityOperationSingleResult<JobInfo>
getResponseClass
in class EntityOperationSingleResultBase<JobInfo>
public Object processResponse(Object clientResponse) throws ServiceException
EntityOperation
processResponse
in interface EntityOperation
processResponse
in class EntityOperationSingleResultBase<JobInfo>
clientResponse
- the raw responseServiceException
- the service exceptionpublic Job.Creator addTaskCreator(Task.CreateBatchOperation taskCreateBatchOperation)
taskCreateBatchOperation
- the task create batch operationpublic Job.Creator setName(String name)
name
- The namepublic String getName()
public Job.Creator setPriority(Integer priority)
priority
- the prioritypublic Integer getPriority()
public List<String> getInputMediaAssets()
public List<Task.CreateBatchOperation> getTaskCreators()
public Job.Creator addInputMediaAsset(String assetId)
assetId
- the asset idpublic javax.ws.rs.core.MediaType getContentType()
EntityOperation
getContentType
in interface EntityOperation
getContentType
in class EntityOperationBase
public String getUri()
EntityOperation
getUri
in interface EntityOperation
getUri
in class EntityOperationBase
public Job.Creator addJobNotificationSubscription(JobNotificationSubscription jobNotificationSubscription)
jobNotificationSubscription
- the job notification subscriptionpublic List<JobNotificationSubscription> getJobNotificationSubscription()
/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/