/*
* 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 status and properties.
///
public partial class PolicyGeneration
{
private DateTime? _completedOn;
private string _jobId;
private string _principalArn;
private DateTime? _startedOn;
private JobStatus _status;
///
/// Gets and sets the property CompletedOn.
///
/// A timestamp of when the policy generation 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 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 PrincipalArn.
///
/// The ARN of the IAM entity (user or role) for which you are generating a policy.
///
///
[AWSProperty(Required=true)]
public string PrincipalArn
{
get { return this._principalArn; }
set { this._principalArn = value; }
}
// Check to see if PrincipalArn property is set
internal bool IsSetPrincipalArn()
{
return this._principalArn != null;
}
///
/// Gets and sets the property StartedOn.
///
/// A timestamp of when the policy generation 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 policy generation 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;
}
}
}