/*
* 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 macie2-2020-01-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.Macie2.Model
{
///
/// Provides information about the type and other characteristics of an entity that performed
/// an action on an affected resource.
///
public partial class UserIdentity
{
private AssumedRole _assumedRole;
private AwsAccount _awsAccount;
private AwsService _awsService;
private FederatedUser _federatedUser;
private IamUser _iamUser;
private UserIdentityRoot _root;
private UserIdentityType _type;
///
/// Gets and sets the property AssumedRole.
///
/// If the action was performed with temporary security credentials that were obtained
/// using the AssumeRole operation of the Security Token Service (STS) API, the identifiers,
/// session context, and other details about the identity.
///
///
public AssumedRole AssumedRole
{
get { return this._assumedRole; }
set { this._assumedRole = value; }
}
// Check to see if AssumedRole property is set
internal bool IsSetAssumedRole()
{
return this._assumedRole != null;
}
///
/// Gets and sets the property AwsAccount.
///
/// If the action was performed using the credentials for another Amazon Web Services
/// account, the details of that account.
///
///
public AwsAccount AwsAccount
{
get { return this._awsAccount; }
set { this._awsAccount = value; }
}
// Check to see if AwsAccount property is set
internal bool IsSetAwsAccount()
{
return this._awsAccount != null;
}
///
/// Gets and sets the property AwsService.
///
/// If the action was performed by an Amazon Web Services account that belongs to an Amazon
/// Web Service, the name of the service.
///
///
public AwsService AwsService
{
get { return this._awsService; }
set { this._awsService = value; }
}
// Check to see if AwsService property is set
internal bool IsSetAwsService()
{
return this._awsService != null;
}
///
/// Gets and sets the property FederatedUser.
///
/// If the action was performed with temporary security credentials that were obtained
/// using the GetFederationToken operation of the Security Token Service (STS) API, the
/// identifiers, session context, and other details about the identity.
///
///
public FederatedUser FederatedUser
{
get { return this._federatedUser; }
set { this._federatedUser = value; }
}
// Check to see if FederatedUser property is set
internal bool IsSetFederatedUser()
{
return this._federatedUser != null;
}
///
/// Gets and sets the property IamUser.
///
/// If the action was performed using the credentials for an Identity and Access Management
/// (IAM) user, the name and other details about the user.
///
///
public IamUser IamUser
{
get { return this._iamUser; }
set { this._iamUser = value; }
}
// Check to see if IamUser property is set
internal bool IsSetIamUser()
{
return this._iamUser != null;
}
///
/// Gets and sets the property Root.
///
/// If the action was performed using the credentials for your Amazon Web Services account,
/// the details of your account.
///
///
public UserIdentityRoot Root
{
get { return this._root; }
set { this._root = value; }
}
// Check to see if Root property is set
internal bool IsSetRoot()
{
return this._root != null;
}
///
/// Gets and sets the property Type.
///
/// The type of entity that performed the action.
///
///
public UserIdentityType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}