/*
* 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
{
///
/// Container for the parameters to the UpdateUser operation.
/// Modifies the details of the specified user account. You cannot update the userId
/// for a user.
///
public partial class UpdateUserRequest : AmazonFinSpaceDataRequest
{
private ApiAccess _apiAccess;
private string _apiAccessPrincipalArn;
private string _clientToken;
private string _firstName;
private string _lastName;
private UserType _type;
private string _userId;
///
/// Gets and sets the property ApiAccess.
///
/// The option to indicate 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 ClientToken.
///
/// A token that ensures idempotency. This token expires in 10 minutes.
///
///
[AWSProperty(Min=1, Max=128)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != 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 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 Type.
///
/// The option to indicate 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 to update.
///
///
[AWSProperty(Required=true, 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;
}
}
}