/*
* 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 finspace-data-2020-07-13.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.FinSpaceData.Model
{
///
/// This is the response object from the GetUser operation.
///
public partial class GetUserResponse : AmazonWebServiceResponse
{
private ApiAccess _apiAccess;
private string _apiAccessPrincipalArn;
private long? _createTime;
private string _emailAddress;
private string _firstName;
private long? _lastDisabledTime;
private long? _lastEnabledTime;
private long? _lastLoginTime;
private long? _lastModifiedTime;
private string _lastName;
private UserStatus _status;
private UserType _type;
private string _userId;
///
/// Gets and sets the property ApiAccess.
///
/// Indicates whether the user can use the GetProgrammaticAccessCredentials
/// API to obtain credentials that can then be used to access other FinSpace Data API
/// operations.
///
/// -
///
///
ENABLED
– The user has permissions to use the APIs.
///
/// -
///
///
DISABLED
– The user does not have permissions to use any APIs.
///
///
///
public ApiAccess ApiAccess
{
get { return this._apiAccess; }
set { this._apiAccess = value; }
}
// Check to see if ApiAccess property is set
internal bool IsSetApiAccess()
{
return this._apiAccess != null;
}
///
/// Gets and sets the property ApiAccessPrincipalArn.
///
/// The ARN identifier of an AWS user or role that is allowed to call the GetProgrammaticAccessCredentials
/// API to obtain a credentials token for a specific FinSpace user. This must be an IAM
/// role within your FinSpace account.
///
///
[AWSProperty(Min=20, Max=2048)]
public string ApiAccessPrincipalArn
{
get { return this._apiAccessPrincipalArn; }
set { this._apiAccessPrincipalArn = value; }
}
// Check to see if ApiAccessPrincipalArn property is set
internal bool IsSetApiAccessPrincipalArn()
{
return this._apiAccessPrincipalArn != null;
}
///
/// Gets and sets the property CreateTime.
///
/// The timestamp at which the user account was created in FinSpace. The value is determined
/// as epoch time in milliseconds.
///
///
public long CreateTime
{
get { return this._createTime.GetValueOrDefault(); }
set { this._createTime = value; }
}
// Check to see if CreateTime property is set
internal bool IsSetCreateTime()
{
return this._createTime.HasValue;
}
///
/// Gets and sets the property EmailAddress.
///
/// The email address that is associated with the user.
///
///
[AWSProperty(Sensitive=true, Min=4, Max=320)]
public string EmailAddress
{
get { return this._emailAddress; }
set { this._emailAddress = value; }
}
// Check to see if EmailAddress property is set
internal bool IsSetEmailAddress()
{
return this._emailAddress != null;
}
///
/// Gets and sets the property FirstName.
///
/// The first name of the user.
///
///
[AWSProperty(Sensitive=true, Min=1, Max=50)]
public string FirstName
{
get { return this._firstName; }
set { this._firstName = value; }
}
// Check to see if FirstName property is set
internal bool IsSetFirstName()
{
return this._firstName != null;
}
///
/// Gets and sets the property LastDisabledTime.
///
/// Describes the last time the user account was disabled. The value is determined as
/// epoch time in milliseconds.
///
///
public long LastDisabledTime
{
get { return this._lastDisabledTime.GetValueOrDefault(); }
set { this._lastDisabledTime = value; }
}
// Check to see if LastDisabledTime property is set
internal bool IsSetLastDisabledTime()
{
return this._lastDisabledTime.HasValue;
}
///
/// Gets and sets the property LastEnabledTime.
///
/// Describes the last time the user account was enabled. The value is determined as epoch
/// time in milliseconds.
///
///
public long LastEnabledTime
{
get { return this._lastEnabledTime.GetValueOrDefault(); }
set { this._lastEnabledTime = value; }
}
// Check to see if LastEnabledTime property is set
internal bool IsSetLastEnabledTime()
{
return this._lastEnabledTime.HasValue;
}
///
/// Gets and sets the property LastLoginTime.
///
/// Describes the last time that the user logged into their account. The value is determined
/// as epoch time in milliseconds.
///
///
public long LastLoginTime
{
get { return this._lastLoginTime.GetValueOrDefault(); }
set { this._lastLoginTime = value; }
}
// Check to see if LastLoginTime property is set
internal bool IsSetLastLoginTime()
{
return this._lastLoginTime.HasValue;
}
///
/// Gets and sets the property LastModifiedTime.
///
/// Describes the last time the user account was updated. The value is determined as epoch
/// time in milliseconds.
///
///
public long LastModifiedTime
{
get { return this._lastModifiedTime.GetValueOrDefault(); }
set { this._lastModifiedTime = value; }
}
// Check to see if LastModifiedTime property is set
internal bool IsSetLastModifiedTime()
{
return this._lastModifiedTime.HasValue;
}
///
/// Gets and sets the property LastName.
///
/// The last name of the user.
///
///
[AWSProperty(Sensitive=true, Min=1, Max=50)]
public string LastName
{
get { return this._lastName; }
set { this._lastName = value; }
}
// Check to see if LastName property is set
internal bool IsSetLastName()
{
return this._lastName != null;
}
///
/// Gets and sets the property Status.
///
/// The current status of the user account.
///
/// -
///
///
CREATING
– The user account creation is in progress.
///
/// -
///
///
ENABLED
– The user account is created and is currently active.
///
/// -
///
///
DISABLED
– The user account is currently inactive.
///
///
///
public UserStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property Type.
///
/// Indicates the type of user.
///
/// -
///
///
SUPER_USER
– A user with permission to all the functionality and data
/// in FinSpace.
///
///
-
///
///
APP_USER
– A user with specific permissions in FinSpace. The users are
/// assigned permissions by adding them to a permission group.
///
///
///
public UserType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
///
/// Gets and sets the property UserId.
///
/// The unique identifier for the user account that is retrieved.
///
///
[AWSProperty(Min=1, Max=26)]
public string UserId
{
get { return this._userId; }
set { this._userId = value; }
}
// Check to see if UserId property is set
internal bool IsSetUserId()
{
return this._userId != null;
}
}
}