/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ package com.amazonaws.services.braket.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Includes information about a quantum task. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class QuantumTaskSummary implements Serializable, Cloneable, StructuredPojo { /** ** The time at which the task was created. *
*/ private java.util.Date createdAt; /** ** The ARN of the device the task ran on. *
*/ private String deviceArn; /** ** The time at which the task finished. *
*/ private java.util.Date endedAt; /** ** The S3 bucket where the task result file is stored.. *
*/ private String outputS3Bucket; /** ** The folder in the S3 bucket where the task result file is stored. *
*/ private String outputS3Directory; /** ** The ARN of the task. *
*/ private String quantumTaskArn; /** ** The shots used for the task. *
*/ private Long shots; /** ** The status of the task. *
*/ private String status; /** ** Displays the key, value pairs of tags associated with this quantum task. *
*/ private java.util.Map* The time at which the task was created. *
* * @param createdAt * The time at which the task was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The time at which the task was created. *
* * @return The time at which the task was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** The time at which the task was created. *
* * @param createdAt * The time at which the task was created. * @return Returns a reference to this object so that method calls can be chained together. */ public QuantumTaskSummary withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** ** The ARN of the device the task ran on. *
* * @param deviceArn * The ARN of the device the task ran on. */ public void setDeviceArn(String deviceArn) { this.deviceArn = deviceArn; } /** ** The ARN of the device the task ran on. *
* * @return The ARN of the device the task ran on. */ public String getDeviceArn() { return this.deviceArn; } /** ** The ARN of the device the task ran on. *
* * @param deviceArn * The ARN of the device the task ran on. * @return Returns a reference to this object so that method calls can be chained together. */ public QuantumTaskSummary withDeviceArn(String deviceArn) { setDeviceArn(deviceArn); return this; } /** ** The time at which the task finished. *
* * @param endedAt * The time at which the task finished. */ public void setEndedAt(java.util.Date endedAt) { this.endedAt = endedAt; } /** ** The time at which the task finished. *
* * @return The time at which the task finished. */ public java.util.Date getEndedAt() { return this.endedAt; } /** ** The time at which the task finished. *
* * @param endedAt * The time at which the task finished. * @return Returns a reference to this object so that method calls can be chained together. */ public QuantumTaskSummary withEndedAt(java.util.Date endedAt) { setEndedAt(endedAt); return this; } /** ** The S3 bucket where the task result file is stored.. *
* * @param outputS3Bucket * The S3 bucket where the task result file is stored.. */ public void setOutputS3Bucket(String outputS3Bucket) { this.outputS3Bucket = outputS3Bucket; } /** ** The S3 bucket where the task result file is stored.. *
* * @return The S3 bucket where the task result file is stored.. */ public String getOutputS3Bucket() { return this.outputS3Bucket; } /** ** The S3 bucket where the task result file is stored.. *
* * @param outputS3Bucket * The S3 bucket where the task result file is stored.. * @return Returns a reference to this object so that method calls can be chained together. */ public QuantumTaskSummary withOutputS3Bucket(String outputS3Bucket) { setOutputS3Bucket(outputS3Bucket); return this; } /** ** The folder in the S3 bucket where the task result file is stored. *
* * @param outputS3Directory * The folder in the S3 bucket where the task result file is stored. */ public void setOutputS3Directory(String outputS3Directory) { this.outputS3Directory = outputS3Directory; } /** ** The folder in the S3 bucket where the task result file is stored. *
* * @return The folder in the S3 bucket where the task result file is stored. */ public String getOutputS3Directory() { return this.outputS3Directory; } /** ** The folder in the S3 bucket where the task result file is stored. *
* * @param outputS3Directory * The folder in the S3 bucket where the task result file is stored. * @return Returns a reference to this object so that method calls can be chained together. */ public QuantumTaskSummary withOutputS3Directory(String outputS3Directory) { setOutputS3Directory(outputS3Directory); return this; } /** ** The ARN of the task. *
* * @param quantumTaskArn * The ARN of the task. */ public void setQuantumTaskArn(String quantumTaskArn) { this.quantumTaskArn = quantumTaskArn; } /** ** The ARN of the task. *
* * @return The ARN of the task. */ public String getQuantumTaskArn() { return this.quantumTaskArn; } /** ** The ARN of the task. *
* * @param quantumTaskArn * The ARN of the task. * @return Returns a reference to this object so that method calls can be chained together. */ public QuantumTaskSummary withQuantumTaskArn(String quantumTaskArn) { setQuantumTaskArn(quantumTaskArn); return this; } /** ** The shots used for the task. *
* * @param shots * The shots used for the task. */ public void setShots(Long shots) { this.shots = shots; } /** ** The shots used for the task. *
* * @return The shots used for the task. */ public Long getShots() { return this.shots; } /** ** The shots used for the task. *
* * @param shots * The shots used for the task. * @return Returns a reference to this object so that method calls can be chained together. */ public QuantumTaskSummary withShots(Long shots) { setShots(shots); return this; } /** ** The status of the task. *
* * @param status * The status of the task. * @see QuantumTaskStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of the task. *
* * @return The status of the task. * @see QuantumTaskStatus */ public String getStatus() { return this.status; } /** ** The status of the task. *
* * @param status * The status of the task. * @return Returns a reference to this object so that method calls can be chained together. * @see QuantumTaskStatus */ public QuantumTaskSummary withStatus(String status) { setStatus(status); return this; } /** ** The status of the task. *
* * @param status * The status of the task. * @return Returns a reference to this object so that method calls can be chained together. * @see QuantumTaskStatus */ public QuantumTaskSummary withStatus(QuantumTaskStatus status) { this.status = status.toString(); return this; } /** ** Displays the key, value pairs of tags associated with this quantum task. *
* * @return Displays the key, value pairs of tags associated with this quantum task. */ public java.util.Map* Displays the key, value pairs of tags associated with this quantum task. *
* * @param tags * Displays the key, value pairs of tags associated with this quantum task. */ public void setTags(java.util.Map* Displays the key, value pairs of tags associated with this quantum task. *
* * @param tags * Displays the key, value pairs of tags associated with this quantum task. * @return Returns a reference to this object so that method calls can be chained together. */ public QuantumTaskSummary withTags(java.util.Map