/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Braket.Model { /// /// This is the response object from the GetQuantumTask operation. /// public partial class GetQuantumTaskResponse : AmazonWebServiceResponse { private DateTime? _createdAt; private string _deviceArn; private string _deviceParameters; private DateTime? _endedAt; private string _failureReason; private string _jobArn; private string _outputs3Bucket; private string _outputs3Directory; private string _quantumTaskArn; private long? _shots; private QuantumTaskStatus _status; private Dictionary _tags = new Dictionary(); /// /// Gets and sets the property CreatedAt. /// /// The time at which the task was created. /// /// [AWSProperty(Required=true)] public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// /// Gets and sets the property DeviceArn. /// /// The ARN of the device the task was run on. /// /// [AWSProperty(Required=true, Min=1, Max=256)] public string DeviceArn { get { return this._deviceArn; } set { this._deviceArn = value; } } // Check to see if DeviceArn property is set internal bool IsSetDeviceArn() { return this._deviceArn != null; } /// /// Gets and sets the property DeviceParameters. /// /// The parameters for the device on which the task ran. /// /// [AWSProperty(Required=true)] public string DeviceParameters { get { return this._deviceParameters; } set { this._deviceParameters = value; } } // Check to see if DeviceParameters property is set internal bool IsSetDeviceParameters() { return this._deviceParameters != null; } /// /// Gets and sets the property EndedAt. /// /// The time at which the task ended. /// /// public DateTime EndedAt { get { return this._endedAt.GetValueOrDefault(); } set { this._endedAt = value; } } // Check to see if EndedAt property is set internal bool IsSetEndedAt() { return this._endedAt.HasValue; } /// /// Gets and sets the property FailureReason. /// /// The reason that a task failed. /// /// public string FailureReason { get { return this._failureReason; } set { this._failureReason = value; } } // Check to see if FailureReason property is set internal bool IsSetFailureReason() { return this._failureReason != null; } /// /// Gets and sets the property JobArn. /// /// The ARN of the Amazon Braket job associated with the quantum task. /// /// public string JobArn { get { return this._jobArn; } set { this._jobArn = value; } } // Check to see if JobArn property is set internal bool IsSetJobArn() { return this._jobArn != null; } /// /// Gets and sets the property OutputS3Bucket. /// /// The S3 bucket where task results are stored. /// /// [AWSProperty(Required=true)] public string OutputS3Bucket { get { return this._outputs3Bucket; } set { this._outputs3Bucket = value; } } // Check to see if OutputS3Bucket property is set internal bool IsSetOutputS3Bucket() { return this._outputs3Bucket != null; } /// /// Gets and sets the property OutputS3Directory. /// /// The folder in the S3 bucket where task results are stored. /// /// [AWSProperty(Required=true)] public string OutputS3Directory { get { return this._outputs3Directory; } set { this._outputs3Directory = value; } } // Check to see if OutputS3Directory property is set internal bool IsSetOutputS3Directory() { return this._outputs3Directory != null; } /// /// Gets and sets the property QuantumTaskArn. /// /// The ARN of the task. /// /// [AWSProperty(Required=true, Min=1, Max=256)] public string QuantumTaskArn { get { return this._quantumTaskArn; } set { this._quantumTaskArn = value; } } // Check to see if QuantumTaskArn property is set internal bool IsSetQuantumTaskArn() { return this._quantumTaskArn != null; } /// /// Gets and sets the property Shots. /// /// The number of shots used in the task. /// /// [AWSProperty(Required=true)] public long Shots { get { return this._shots.GetValueOrDefault(); } set { this._shots = value; } } // Check to see if Shots property is set internal bool IsSetShots() { return this._shots.HasValue; } /// /// Gets and sets the property Status. /// /// The status of the task. /// /// [AWSProperty(Required=true)] public QuantumTaskStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property Tags. /// /// The tags that belong to this task. /// /// public Dictionary Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }