/*
* 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
{
///
/// Provides summary information about an Amazon Braket job.
///
public partial class JobSummary
{
private DateTime? _createdAt;
private string _device;
private DateTime? _endedAt;
private string _jobArn;
private string _jobName;
private DateTime? _startedAt;
private JobPrimaryStatus _status;
private Dictionary _tags = new Dictionary();
///
/// Gets and sets the property CreatedAt.
///
/// The date and time that the Amazon Braket job 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 Device.
///
/// Provides summary information about the primary device used by an Amazon Braket job.
///
///
[AWSProperty(Required=true, Min=1, Max=256)]
public string Device
{
get { return this._device; }
set { this._device = value; }
}
// Check to see if Device property is set
internal bool IsSetDevice()
{
return this._device != null;
}
///
/// Gets and sets the property EndedAt.
///
/// The date and time that the Amazon Braket job 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 JobArn.
///
/// The ARN of the Amazon Braket job.
///
///
[AWSProperty(Required=true)]
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 JobName.
///
/// The name of the Amazon Braket job.
///
///
[AWSProperty(Required=true)]
public string JobName
{
get { return this._jobName; }
set { this._jobName = value; }
}
// Check to see if JobName property is set
internal bool IsSetJobName()
{
return this._jobName != null;
}
///
/// Gets and sets the property StartedAt.
///
/// The date and time that the Amazon Braket job was started.
///
///
public DateTime StartedAt
{
get { return this._startedAt.GetValueOrDefault(); }
set { this._startedAt = value; }
}
// Check to see if StartedAt property is set
internal bool IsSetStartedAt()
{
return this._startedAt.HasValue;
}
///
/// Gets and sets the property Status.
///
/// The status of the Amazon Braket job.
///
///
[AWSProperty(Required=true)]
public JobPrimaryStatus 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.
///
/// A tag object that consists of a key and an optional value, used to manage metadata
/// for Amazon Braket resources.
///
///
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;
}
}
}