Class AbstractAWSDeviceFarm
- java.lang.Object
-
- com.amazonaws.services.devicefarm.AbstractAWSDeviceFarm
-
- All Implemented Interfaces:
AWSDeviceFarm
- Direct Known Subclasses:
AbstractAWSDeviceFarmAsync
public class AbstractAWSDeviceFarm extends Object implements AWSDeviceFarm
Abstract implementation ofAWSDeviceFarm. Convenient method forms pass through to the corresponding overload that takes a request object, which throws anUnsupportedOperationException.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAWSDeviceFarm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateDevicePoolResultcreateDevicePool(CreateDevicePoolRequest request)Creates a device pool.CreateProjectResultcreateProject(CreateProjectRequest request)Creates a new project.CreateUploadResultcreateUpload(CreateUploadRequest request)Uploads an app or test scripts.DeleteDevicePoolResultdeleteDevicePool(DeleteDevicePoolRequest request)Deletes a device pool given the pool ARN.DeleteProjectResultdeleteProject(DeleteProjectRequest request)Deletes an AWS Device Farm project, given the project ARN.DeleteRunResultdeleteRun(DeleteRunRequest request)Deletes the run, given the run ARN.DeleteUploadResultdeleteUpload(DeleteUploadRequest request)Deletes an upload given the upload ARN.GetAccountSettingsResultgetAccountSettings(GetAccountSettingsRequest request)Returns the number of unmetered iOS and/or unmetered Android devices that have been purchased by the account.ResponseMetadatagetCachedResponseMetadata(AmazonWebServiceRequest request)Returns additional metadata for a previously executed successful request, typically used for debugging issues where a service isn't acting as expected.GetDeviceResultgetDevice(GetDeviceRequest request)Gets information about a unique device type.GetDevicePoolResultgetDevicePool(GetDevicePoolRequest request)Gets information about a device pool.GetDevicePoolCompatibilityResultgetDevicePoolCompatibility(GetDevicePoolCompatibilityRequest request)Gets information about compatibility with a device pool.GetJobResultgetJob(GetJobRequest request)Gets information about a job.GetOfferingStatusResultgetOfferingStatus(GetOfferingStatusRequest request)Gets the current status and future status of all offerings purchased by an AWS account.GetProjectResultgetProject(GetProjectRequest request)Gets information about a project.GetRunResultgetRun(GetRunRequest request)Gets information about a run.GetSuiteResultgetSuite(GetSuiteRequest request)Gets information about a suite.GetTestResultgetTest(GetTestRequest request)Gets information about a test.GetUploadResultgetUpload(GetUploadRequest request)Gets information about an upload.ListArtifactsResultlistArtifacts(ListArtifactsRequest request)Gets information about artifacts.ListDevicePoolsResultlistDevicePools(ListDevicePoolsRequest request)Gets information about device pools.ListDevicesResultlistDevices(ListDevicesRequest request)Gets information about unique device types.ListJobsResultlistJobs(ListJobsRequest request)Gets information about jobs.ListOfferingsResultlistOfferings(ListOfferingsRequest request)Returns a list of products or offerings that the user can manage through the API.ListOfferingTransactionsResultlistOfferingTransactions(ListOfferingTransactionsRequest request)Returns a list of all historical purchases, renewals, and system renewal transactions for an AWS account.ListProjectsResultlistProjects(ListProjectsRequest request)Gets information about projects.ListRunsResultlistRuns(ListRunsRequest request)Gets information about runs.ListSamplesResultlistSamples(ListSamplesRequest request)Gets information about samples.ListSuitesResultlistSuites(ListSuitesRequest request)Gets information about suites.ListTestsResultlistTests(ListTestsRequest request)Gets information about tests.ListUniqueProblemsResultlistUniqueProblems(ListUniqueProblemsRequest request)Gets information about unique problems.ListUploadsResultlistUploads(ListUploadsRequest request)Gets information about uploads.PurchaseOfferingResultpurchaseOffering(PurchaseOfferingRequest request)Immediately purchases offerings for an AWS account.RenewOfferingResultrenewOffering(RenewOfferingRequest request)Explicitly sets the quantity of devices to renew for an offering, starting from theeffectiveDateof the next period.ScheduleRunResultscheduleRun(ScheduleRunRequest request)Schedules a run.voidsetEndpoint(String endpoint)Overrides the default endpoint for this client ("https://devicefarm.us-west-2.amazonaws.com").voidsetRegion(Region region)An alternative toAWSDeviceFarm.setEndpoint(String), sets the regional endpoint for this client's service calls.voidshutdown()Shuts down this client object, releasing any resources that might be held open.StopRunResultstopRun(StopRunRequest request)Initiates a stop request for the current test run.UpdateDevicePoolResultupdateDevicePool(UpdateDevicePoolRequest request)Modifies the name, description, and rules in a device pool given the attributes and the pool ARN.UpdateProjectResultupdateProject(UpdateProjectRequest request)Modifies the specified project name, given the project ARN and a new name.
-
-
-
Method Detail
-
setEndpoint
public void setEndpoint(String endpoint)
Description copied from interface:AWSDeviceFarmOverrides the default endpoint for this client ("https://devicefarm.us-west-2.amazonaws.com"). Callers can use this method to control which AWS region they want to work with.Callers can pass in just the endpoint (ex: "devicefarm.us-west-2.amazonaws.com") or a full URL, including the protocol (ex: "https://devicefarm.us-west-2.amazonaws.com"). If the protocol is not specified here, the default protocol from this client's
ClientConfigurationwill be used, which by default is HTTPS.For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID= 3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
- Specified by:
setEndpointin interfaceAWSDeviceFarm- Parameters:
endpoint- The endpoint (ex: "devicefarm.us-west-2.amazonaws.com") or a full URL, including the protocol (ex: "https://devicefarm.us-west-2.amazonaws.com") of the region specific AWS endpoint this client will communicate with.
-
setRegion
public void setRegion(Region region)
Description copied from interface:AWSDeviceFarmAn alternative toAWSDeviceFarm.setEndpoint(String), sets the regional endpoint for this client's service calls. Callers can use this method to control which AWS region they want to work with.By default, all service endpoints in all regions use the https protocol. To use http instead, specify it in the
ClientConfigurationsupplied at construction.This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
- Specified by:
setRegionin interfaceAWSDeviceFarm- Parameters:
region- The region this client will communicate with. SeeRegion.getRegion(com.amazonaws.regions.Regions)for accessing a given region. Must not be null and must be a region where the service is available.- See Also:
Region.getRegion(com.amazonaws.regions.Regions),Region.createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration),Region.isServiceSupported(String)
-
createDevicePool
public CreateDevicePoolResult createDevicePool(CreateDevicePoolRequest request)
Description copied from interface:AWSDeviceFarmCreates a device pool.
- Specified by:
createDevicePoolin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the create device pool operation.- Returns:
- Result of the CreateDevicePool operation returned by the service.
-
createProject
public CreateProjectResult createProject(CreateProjectRequest request)
Description copied from interface:AWSDeviceFarmCreates a new project.
- Specified by:
createProjectin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the create project operation.- Returns:
- Result of the CreateProject operation returned by the service.
-
createUpload
public CreateUploadResult createUpload(CreateUploadRequest request)
Description copied from interface:AWSDeviceFarmUploads an app or test scripts.
- Specified by:
createUploadin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the create upload operation.- Returns:
- Result of the CreateUpload operation returned by the service.
-
deleteDevicePool
public DeleteDevicePoolResult deleteDevicePool(DeleteDevicePoolRequest request)
Description copied from interface:AWSDeviceFarmDeletes a device pool given the pool ARN. Does not allow deletion of curated pools owned by the system.
- Specified by:
deleteDevicePoolin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the delete device pool operation.- Returns:
- Result of the DeleteDevicePool operation returned by the service.
-
deleteProject
public DeleteProjectResult deleteProject(DeleteProjectRequest request)
Description copied from interface:AWSDeviceFarmDeletes an AWS Device Farm project, given the project ARN.
Note Deleting this resource does not stop an in-progress run.
- Specified by:
deleteProjectin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the delete project operation.- Returns:
- Result of the DeleteProject operation returned by the service.
-
deleteRun
public DeleteRunResult deleteRun(DeleteRunRequest request)
Description copied from interface:AWSDeviceFarmDeletes the run, given the run ARN.
Note Deleting this resource does not stop an in-progress run.
- Specified by:
deleteRunin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the delete run operation.- Returns:
- Result of the DeleteRun operation returned by the service.
-
deleteUpload
public DeleteUploadResult deleteUpload(DeleteUploadRequest request)
Description copied from interface:AWSDeviceFarmDeletes an upload given the upload ARN.
- Specified by:
deleteUploadin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the delete upload operation.- Returns:
- Result of the DeleteUpload operation returned by the service.
-
getAccountSettings
public GetAccountSettingsResult getAccountSettings(GetAccountSettingsRequest request)
Description copied from interface:AWSDeviceFarmReturns the number of unmetered iOS and/or unmetered Android devices that have been purchased by the account.
- Specified by:
getAccountSettingsin interfaceAWSDeviceFarm- Parameters:
request- Represents the request sent to retrieve the account settings.- Returns:
- Result of the GetAccountSettings operation returned by the service.
-
getDevice
public GetDeviceResult getDevice(GetDeviceRequest request)
Description copied from interface:AWSDeviceFarmGets information about a unique device type.
- Specified by:
getDevicein interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the get device request.- Returns:
- Result of the GetDevice operation returned by the service.
-
getDevicePool
public GetDevicePoolResult getDevicePool(GetDevicePoolRequest request)
Description copied from interface:AWSDeviceFarmGets information about a device pool.
- Specified by:
getDevicePoolin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the get device pool operation.- Returns:
- Result of the GetDevicePool operation returned by the service.
-
getDevicePoolCompatibility
public GetDevicePoolCompatibilityResult getDevicePoolCompatibility(GetDevicePoolCompatibilityRequest request)
Description copied from interface:AWSDeviceFarmGets information about compatibility with a device pool.
- Specified by:
getDevicePoolCompatibilityin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the get device pool compatibility operation.- Returns:
- Result of the GetDevicePoolCompatibility operation returned by the service.
-
getJob
public GetJobResult getJob(GetJobRequest request)
Description copied from interface:AWSDeviceFarmGets information about a job.
- Specified by:
getJobin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the get job operation.- Returns:
- Result of the GetJob operation returned by the service.
-
getOfferingStatus
public GetOfferingStatusResult getOfferingStatus(GetOfferingStatusRequest request)
Description copied from interface:AWSDeviceFarmGets the current status and future status of all offerings purchased by an AWS account. The response indicates how many offerings are currently available and the offerings that will be available in the next period. The API returns a
NotEligibleerror if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com if you believe that you should be able to invoke this operation.- Specified by:
getOfferingStatusin interfaceAWSDeviceFarm- Parameters:
request- Represents the request to retrieve the offering status for the specified customer or account.- Returns:
- Result of the GetOfferingStatus operation returned by the service.
-
getProject
public GetProjectResult getProject(GetProjectRequest request)
Description copied from interface:AWSDeviceFarmGets information about a project.
- Specified by:
getProjectin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the get project operation.- Returns:
- Result of the GetProject operation returned by the service.
-
getRun
public GetRunResult getRun(GetRunRequest request)
Description copied from interface:AWSDeviceFarmGets information about a run.
- Specified by:
getRunin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the get run operation.- Returns:
- Result of the GetRun operation returned by the service.
-
getSuite
public GetSuiteResult getSuite(GetSuiteRequest request)
Description copied from interface:AWSDeviceFarmGets information about a suite.
- Specified by:
getSuitein interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the get suite operation.- Returns:
- Result of the GetSuite operation returned by the service.
-
getTest
public GetTestResult getTest(GetTestRequest request)
Description copied from interface:AWSDeviceFarmGets information about a test.
- Specified by:
getTestin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the get test operation.- Returns:
- Result of the GetTest operation returned by the service.
-
getUpload
public GetUploadResult getUpload(GetUploadRequest request)
Description copied from interface:AWSDeviceFarmGets information about an upload.
- Specified by:
getUploadin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the get upload operation.- Returns:
- Result of the GetUpload operation returned by the service.
-
listArtifacts
public ListArtifactsResult listArtifacts(ListArtifactsRequest request)
Description copied from interface:AWSDeviceFarmGets information about artifacts.
- Specified by:
listArtifactsin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the list artifacts operation.- Returns:
- Result of the ListArtifacts operation returned by the service.
-
listDevicePools
public ListDevicePoolsResult listDevicePools(ListDevicePoolsRequest request)
Description copied from interface:AWSDeviceFarmGets information about device pools.
- Specified by:
listDevicePoolsin interfaceAWSDeviceFarm- Parameters:
request- Represents the result of a list device pools request.- Returns:
- Result of the ListDevicePools operation returned by the service.
-
listDevices
public ListDevicesResult listDevices(ListDevicesRequest request)
Description copied from interface:AWSDeviceFarmGets information about unique device types.
- Specified by:
listDevicesin interfaceAWSDeviceFarm- Parameters:
request- Represents the result of a list devices request.- Returns:
- Result of the ListDevices operation returned by the service.
-
listJobs
public ListJobsResult listJobs(ListJobsRequest request)
Description copied from interface:AWSDeviceFarmGets information about jobs.
- Specified by:
listJobsin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the list jobs operation.- Returns:
- Result of the ListJobs operation returned by the service.
-
listOfferingTransactions
public ListOfferingTransactionsResult listOfferingTransactions(ListOfferingTransactionsRequest request)
Description copied from interface:AWSDeviceFarmReturns a list of all historical purchases, renewals, and system renewal transactions for an AWS account. The list is paginated and ordered by a descending timestamp (most recent transactions are first). The API returns a
NotEligibleerror if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com if you believe that you should be able to invoke this operation.- Specified by:
listOfferingTransactionsin interfaceAWSDeviceFarm- Parameters:
request- Represents the request to list the offering transaction history.- Returns:
- Result of the ListOfferingTransactions operation returned by the service.
-
listOfferings
public ListOfferingsResult listOfferings(ListOfferingsRequest request)
Description copied from interface:AWSDeviceFarmReturns a list of products or offerings that the user can manage through the API. Each offering record indicates the recurring price per unit and the frequency for that offering. The API returns a
NotEligibleerror if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com if you believe that you should be able to invoke this operation.- Specified by:
listOfferingsin interfaceAWSDeviceFarm- Parameters:
request- Represents the request to list all offerings.- Returns:
- Result of the ListOfferings operation returned by the service.
-
listProjects
public ListProjectsResult listProjects(ListProjectsRequest request)
Description copied from interface:AWSDeviceFarmGets information about projects.
- Specified by:
listProjectsin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the list projects operation.- Returns:
- Result of the ListProjects operation returned by the service.
-
listRuns
public ListRunsResult listRuns(ListRunsRequest request)
Description copied from interface:AWSDeviceFarmGets information about runs.
- Specified by:
listRunsin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the list runs operation.- Returns:
- Result of the ListRuns operation returned by the service.
-
listSamples
public ListSamplesResult listSamples(ListSamplesRequest request)
Description copied from interface:AWSDeviceFarmGets information about samples.
- Specified by:
listSamplesin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the list samples operation.- Returns:
- Result of the ListSamples operation returned by the service.
-
listSuites
public ListSuitesResult listSuites(ListSuitesRequest request)
Description copied from interface:AWSDeviceFarmGets information about suites.
- Specified by:
listSuitesin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the list suites operation.- Returns:
- Result of the ListSuites operation returned by the service.
-
listTests
public ListTestsResult listTests(ListTestsRequest request)
Description copied from interface:AWSDeviceFarmGets information about tests.
- Specified by:
listTestsin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the list tests operation.- Returns:
- Result of the ListTests operation returned by the service.
-
listUniqueProblems
public ListUniqueProblemsResult listUniqueProblems(ListUniqueProblemsRequest request)
Description copied from interface:AWSDeviceFarmGets information about unique problems.
- Specified by:
listUniqueProblemsin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the list unique problems operation.- Returns:
- Result of the ListUniqueProblems operation returned by the service.
-
listUploads
public ListUploadsResult listUploads(ListUploadsRequest request)
Description copied from interface:AWSDeviceFarmGets information about uploads.
- Specified by:
listUploadsin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the list uploads operation.- Returns:
- Result of the ListUploads operation returned by the service.
-
purchaseOffering
public PurchaseOfferingResult purchaseOffering(PurchaseOfferingRequest request)
Description copied from interface:AWSDeviceFarmImmediately purchases offerings for an AWS account. Offerings renew with the latest total purchased quantity for an offering, unless the renewal was overridden. The API returns a
NotEligibleerror if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com if you believe that you should be able to invoke this operation.- Specified by:
purchaseOfferingin interfaceAWSDeviceFarm- Parameters:
request- Represents a request for a purchase offering.- Returns:
- Result of the PurchaseOffering operation returned by the service.
-
renewOffering
public RenewOfferingResult renewOffering(RenewOfferingRequest request)
Description copied from interface:AWSDeviceFarmExplicitly sets the quantity of devices to renew for an offering, starting from the
effectiveDateof the next period. The API returns aNotEligibleerror if the user is not permitted to invoke the operation. Please contact aws-devicefarm-support@amazon.com if you believe that you should be able to invoke this operation.- Specified by:
renewOfferingin interfaceAWSDeviceFarm- Parameters:
request- A request representing an offering renewal.- Returns:
- Result of the RenewOffering operation returned by the service.
-
scheduleRun
public ScheduleRunResult scheduleRun(ScheduleRunRequest request)
Description copied from interface:AWSDeviceFarmSchedules a run.
- Specified by:
scheduleRunin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the schedule run operation.- Returns:
- Result of the ScheduleRun operation returned by the service.
-
stopRun
public StopRunResult stopRun(StopRunRequest request)
Description copied from interface:AWSDeviceFarmInitiates a stop request for the current test run. AWS Device Farm will immediately stop the run on devices where tests have not started executing, and you will not be billed for these devices. On devices where tests have started executing, Setup Suite and Teardown Suite tests will run to completion before stopping execution on those devices. You will be billed for Setup, Teardown, and any tests that were in progress or already completed.
- Specified by:
stopRunin interfaceAWSDeviceFarm- Parameters:
request- Represents the request to stop a specific run.- Returns:
- Result of the StopRun operation returned by the service.
-
updateDevicePool
public UpdateDevicePoolResult updateDevicePool(UpdateDevicePoolRequest request)
Description copied from interface:AWSDeviceFarmModifies the name, description, and rules in a device pool given the attributes and the pool ARN. Rule updates are all-or-nothing, meaning they can only be updated as a whole (or not at all).
- Specified by:
updateDevicePoolin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the update device pool operation.- Returns:
- Result of the UpdateDevicePool operation returned by the service.
-
updateProject
public UpdateProjectResult updateProject(UpdateProjectRequest request)
Description copied from interface:AWSDeviceFarmModifies the specified project name, given the project ARN and a new name.
- Specified by:
updateProjectin interfaceAWSDeviceFarm- Parameters:
request- Represents a request to the update project operation.- Returns:
- Result of the UpdateProject operation returned by the service.
-
shutdown
public void shutdown()
Description copied from interface:AWSDeviceFarmShuts down this client object, releasing any resources that might be held open. This is an optional method, and callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client has been shutdown, it should not be used to make any more requests.- Specified by:
shutdownin interfaceAWSDeviceFarm
-
getCachedResponseMetadata
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Description copied from interface:AWSDeviceFarmReturns additional metadata for a previously executed successful request, typically used for debugging issues where a service isn't acting as expected. This data isn't considered part of the result data returned by an operation, so it's available through this separate, diagnostic interface.Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
- Specified by:
getCachedResponseMetadatain interfaceAWSDeviceFarm- Parameters:
request- The originally executed request.- Returns:
- The response metadata for the specified request, or null if none is available.
-
-