/* Options: Date: 2025-12-06 07:28:41 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: UpdateRoleRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { @Route(Path="/v1/Roles/{RoleId}", Verbs="PUT,OPTIONS") public static class UpdateRoleRequest implements IReturn { public Integer RoleId = null; public String Code = null; public String Name = null; public String Description = null; public ArrayList PermissionIds = new ArrayList(); public Integer getRoleId() { return RoleId; } public UpdateRoleRequest setRoleId(Integer value) { this.RoleId = value; return this; } public String getCode() { return Code; } public UpdateRoleRequest setCode(String value) { this.Code = value; return this; } public String getName() { return Name; } public UpdateRoleRequest setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public UpdateRoleRequest setDescription(String value) { this.Description = value; return this; } public ArrayList getPermissionIds() { return PermissionIds; } public UpdateRoleRequest setPermissionIds(ArrayList value) { this.PermissionIds = value; return this; } private static Object responseType = Role.class; public Object getResponseType() { return responseType; } } public static class Role { public Integer RoleId = null; public UUID TenantId = null; public String Code = null; public String Name = null; public String Description = null; public Boolean IsSystem = null; public Boolean IsActive = null; public Date CreatedUtc = null; public ArrayList Permissions = new ArrayList(); public Integer getRoleId() { return RoleId; } public Role setRoleId(Integer value) { this.RoleId = value; return this; } public UUID getTenantId() { return TenantId; } public Role setTenantId(UUID value) { this.TenantId = value; return this; } public String getCode() { return Code; } public Role setCode(String value) { this.Code = value; return this; } public String getName() { return Name; } public Role setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public Role setDescription(String value) { this.Description = value; return this; } public Boolean getIsSystem() { return IsSystem; } public Role setIsSystem(Boolean value) { this.IsSystem = value; return this; } public Boolean getIsActive() { return IsActive; } public Role setIsActive(Boolean value) { this.IsActive = value; return this; } public Date getCreatedUtc() { return CreatedUtc; } public Role setCreatedUtc(Date value) { this.CreatedUtc = value; return this; } public ArrayList getPermissions() { return Permissions; } public Role setPermissions(ArrayList value) { this.Permissions = value; return this; } } public static class Permission { public Integer PermissionId = null; public String Module = null; public String Resource = null; public String Action = null; public String Name = null; public String Description = null; public String Tags = null; public Integer SortOrder = null; public Boolean IsActive = null; public Date CreatedUtc = null; public String Code = null; public Integer getPermissionId() { return PermissionId; } public Permission setPermissionId(Integer value) { this.PermissionId = value; return this; } public String getModule() { return Module; } public Permission setModule(String value) { this.Module = value; return this; } public String getResource() { return Resource; } public Permission setResource(String value) { this.Resource = value; return this; } public String getAction() { return Action; } public Permission setAction(String value) { this.Action = value; return this; } public String getName() { return Name; } public Permission setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public Permission setDescription(String value) { this.Description = value; return this; } public String getTags() { return Tags; } public Permission setTags(String value) { this.Tags = value; return this; } public Integer getSortOrder() { return SortOrder; } public Permission setSortOrder(Integer value) { this.SortOrder = value; return this; } public Boolean getIsActive() { return IsActive; } public Permission setIsActive(Boolean value) { this.IsActive = value; return this; } public Date getCreatedUtc() { return CreatedUtc; } public Permission setCreatedUtc(Date value) { this.CreatedUtc = value; return this; } public String getCode() { return Code; } public Permission setCode(String value) { this.Code = value; return this; } } }