package com.friday.tooldriver.dto.uipath.request;


import com.alibaba.fastjson.annotation.JSONField;
import lombok.*;

import java.io.Serializable;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserRequestDto implements Serializable {
    //名称
    @JSONField(name="Name")
    private String name;
    //姓氏
    @JSONField(name="Surname")
    private String surname;
    //用户名 （必填）
    @JSONField(name="UserName")
    private String userName;
    //电子邮件地址
    @JSONField(name="EmailAddress")
    private String emailAddress;
    //密码
    @JSONField(name="Password")
    private String password;
    //角色(必填)
    @JSONField(name="RolesList")
    private List<String> rolesList;
    //是否允许网页登陆
    @JSONField(name="MayHaveUserSession")
    private boolean mayHaveUserSession;
    //是否自动为该用户创建有人值守机器人
    @JSONField(name="MayHaveRobotSession")
    private boolean mayHaveRobotSession;
    //前台机器相关信息
    @JSONField(name="RobotProvision")
    private AttendedRobotDto attendedRobotDto;
    //许可证类型
    @JSONField(name="LicenseType")
    private String licenseType;
    //是否自动为该用户创建无人值守机器人
    @JSONField(name="MayHaveUnattendedSession")
    private boolean mayHaveUnattendedSession;
    //后台机器相关信息
    @JSONField(name="UnattendedRobot")
    private UnattendedRobotDto unattendedRobotDto;
    //通知相关信息
    @JSONField(name="NotificationSubscription")
    private NotificationSubscriptionDto notificationSubscription;
    //用户类型
    @JSONField(name="Type")
    private String type;
    @JSONField(name="IsExternalLicensed")
    private boolean externalLicensed;
    @JSONField(name="Id")
    private Integer id;
    //更新时必填
    @JSONField(name="IsActive")
    private boolean isActive;
    @JSONField(name="Key")
    private String key;
}
