/*
* 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 snow-device-management-2021-08-04.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.SnowDeviceManagement.Model
{
///
/// This is the response object from the DescribeTask operation.
///
public partial class DescribeTaskResponse : AmazonWebServiceResponse
{
private DateTime? _completedAt;
private DateTime? _createdAt;
private string _description;
private DateTime? _lastUpdatedAt;
private TaskState _state;
private Dictionary _tags = new Dictionary();
private List _targets = new List();
private string _taskArn;
private string _taskId;
///
/// Gets and sets the property CompletedAt.
///
/// When the task was completed.
///
///
public DateTime CompletedAt
{
get { return this._completedAt.GetValueOrDefault(); }
set { this._completedAt = value; }
}
// Check to see if CompletedAt property is set
internal bool IsSetCompletedAt()
{
return this._completedAt.HasValue;
}
///
/// Gets and sets the property CreatedAt.
///
/// When the CreateTask
operation was called.
///
///
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 Description.
///
/// The description provided of the task and managed devices.
///
///
[AWSProperty(Min=1, Max=128)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property LastUpdatedAt.
///
/// When the state of the task was last updated.
///
///
public DateTime LastUpdatedAt
{
get { return this._lastUpdatedAt.GetValueOrDefault(); }
set { this._lastUpdatedAt = value; }
}
// Check to see if LastUpdatedAt property is set
internal bool IsSetLastUpdatedAt()
{
return this._lastUpdatedAt.HasValue;
}
///
/// Gets and sets the property State.
///
/// The current state of the task.
///
///
public TaskState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
///
/// Gets and sets the property Tags.
///
/// Optional metadata that you assign to a resource. You can use tags to categorize a
/// resource in different ways, such as by purpose, owner, or environment.
///
///
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;
}
///
/// Gets and sets the property Targets.
///
/// The managed devices that the task was sent to.
///
///
[AWSProperty(Min=1, Max=10)]
public List Targets
{
get { return this._targets; }
set { this._targets = value; }
}
// Check to see if Targets property is set
internal bool IsSetTargets()
{
return this._targets != null && this._targets.Count > 0;
}
///
/// Gets and sets the property TaskArn.
///
/// The Amazon Resource Name (ARN) of the task.
///
///
public string TaskArn
{
get { return this._taskArn; }
set { this._taskArn = value; }
}
// Check to see if TaskArn property is set
internal bool IsSetTaskArn()
{
return this._taskArn != null;
}
///
/// Gets and sets the property TaskId.
///
/// The ID of the task.
///
///
public string TaskId
{
get { return this._taskId; }
set { this._taskId = value; }
}
// Check to see if TaskId property is set
internal bool IsSetTaskId()
{
return this._taskId != null;
}
}
}