/* * 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 accessanalyzer-2019-11-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.AccessAnalyzer.Model { /// /// Contains details about the policy generation request. /// public partial class JobDetails { private DateTime? _completedOn; private JobError _jobError; private string _jobId; private DateTime? _startedOn; private JobStatus _status; /// /// Gets and sets the property CompletedOn. /// /// A timestamp of when the job was completed. /// /// public DateTime CompletedOn { get { return this._completedOn.GetValueOrDefault(); } set { this._completedOn = value; } } // Check to see if CompletedOn property is set internal bool IsSetCompletedOn() { return this._completedOn.HasValue; } /// /// Gets and sets the property JobError. /// /// The job error for the policy generation request. /// /// public JobError JobError { get { return this._jobError; } set { this._jobError = value; } } // Check to see if JobError property is set internal bool IsSetJobError() { return this._jobError != null; } /// /// Gets and sets the property JobId. /// /// The JobId that is returned by the StartPolicyGeneration /// operation. The JobId can be used with GetGeneratedPolicy /// to retrieve the generated policies or used with CancelPolicyGeneration /// to cancel the policy generation request. /// /// [AWSProperty(Required=true)] public string JobId { get { return this._jobId; } set { this._jobId = value; } } // Check to see if JobId property is set internal bool IsSetJobId() { return this._jobId != null; } /// /// Gets and sets the property StartedOn. /// /// A timestamp of when the job was started. /// /// [AWSProperty(Required=true)] public DateTime StartedOn { get { return this._startedOn.GetValueOrDefault(); } set { this._startedOn = value; } } // Check to see if StartedOn property is set internal bool IsSetStartedOn() { return this._startedOn.HasValue; } /// /// Gets and sets the property Status. /// /// The status of the job request. /// /// [AWSProperty(Required=true)] public JobStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }