/*
* 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 iam-2010-05-08.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.IdentityManagement.Model
{
///
/// This is the response object from the GetServiceLastAccessedDetails operation.
///
public partial class GetServiceLastAccessedDetailsResponse : AmazonWebServiceResponse
{
private ErrorDetails _error;
private bool? _isTruncated;
private DateTime? _jobCompletionDate;
private DateTime? _jobCreationDate;
private JobStatusType _jobStatus;
private AccessAdvisorUsageGranularityType _jobType;
private string _marker;
private List _servicesLastAccessed = new List();
///
/// Gets and sets the property Error.
///
/// An object that contains details about the reason the operation failed.
///
///
public ErrorDetails Error
{
get { return this._error; }
set { this._error = value; }
}
// Check to see if Error property is set
internal bool IsSetError()
{
return this._error != null;
}
///
/// Gets and sets the property IsTruncated.
///
/// A flag that indicates whether there are more items to return. If your results were
/// truncated, you can make a subsequent pagination request using the Marker
/// request parameter to retrieve more items. Note that IAM might return fewer than the
/// MaxItems
number of results even when there are more results available.
/// We recommend that you check IsTruncated
after every call to ensure that
/// you receive all your results.
///
///
public bool IsTruncated
{
get { return this._isTruncated.GetValueOrDefault(); }
set { this._isTruncated = value; }
}
// Check to see if IsTruncated property is set
internal bool IsSetIsTruncated()
{
return this._isTruncated.HasValue;
}
///
/// Gets and sets the property JobCompletionDate.
///
/// The date and time, in ISO 8601 date-time
/// format, when the generated report job was completed or failed.
///
///
///
/// This field is null if the job is still in progress, as indicated by a job status value
/// of IN_PROGRESS
.
///
///
[AWSProperty(Required=true)]
public DateTime JobCompletionDate
{
get { return this._jobCompletionDate.GetValueOrDefault(); }
set { this._jobCompletionDate = value; }
}
// Check to see if JobCompletionDate property is set
internal bool IsSetJobCompletionDate()
{
return this._jobCompletionDate.HasValue;
}
///
/// Gets and sets the property JobCreationDate.
///
/// The date and time, in ISO 8601 date-time
/// format, when the report job was created.
///
///
[AWSProperty(Required=true)]
public DateTime JobCreationDate
{
get { return this._jobCreationDate.GetValueOrDefault(); }
set { this._jobCreationDate = value; }
}
// Check to see if JobCreationDate property is set
internal bool IsSetJobCreationDate()
{
return this._jobCreationDate.HasValue;
}
///
/// Gets and sets the property JobStatus.
///
/// The status of the job.
///
///
[AWSProperty(Required=true)]
public JobStatusType JobStatus
{
get { return this._jobStatus; }
set { this._jobStatus = value; }
}
// Check to see if JobStatus property is set
internal bool IsSetJobStatus()
{
return this._jobStatus != null;
}
///
/// Gets and sets the property JobType.
///
/// The type of job. Service jobs return information about when each service was last
/// accessed. Action jobs also include information about when tracked actions within the
/// service were last accessed.
///
///
public AccessAdvisorUsageGranularityType JobType
{
get { return this._jobType; }
set { this._jobType = value; }
}
// Check to see if JobType property is set
internal bool IsSetJobType()
{
return this._jobType != null;
}
///
/// Gets and sets the property Marker.
///
/// When IsTruncated
is true
, this element is present and contains
/// the value to use for the Marker
parameter in a subsequent pagination
/// request.
///
///
public string Marker
{
get { return this._marker; }
set { this._marker = value; }
}
// Check to see if Marker property is set
internal bool IsSetMarker()
{
return this._marker != null;
}
///
/// Gets and sets the property ServicesLastAccessed.
///
/// A ServiceLastAccessed
object that contains details about the most recent
/// attempt to access the service.
///
///
[AWSProperty(Required=true)]
public List ServicesLastAccessed
{
get { return this._servicesLastAccessed; }
set { this._servicesLastAccessed = value; }
}
// Check to see if ServicesLastAccessed property is set
internal bool IsSetServicesLastAccessed()
{
return this._servicesLastAccessed != null && this._servicesLastAccessed.Count > 0;
}
}
}