net.leanix.mtm.api.models.AuthenticatedUser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-mtm-sdk-java Show documentation
Show all versions of leanix-mtm-sdk-java Show documentation
SDK for Java to access leanIX MTM REST API
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 LeanIX GmbH
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package net.leanix.mtm.api.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.*;
import java.util.*;
import net.leanix.mtm.api.models.AuthenticatedUserAccount;
import net.leanix.mtm.api.models.WorkspacePermission;
public class AuthenticatedUser
{
private List permissions = new ArrayList();
private String userName = null;
private String identifier = null;
private String accountStatus = null;
private AuthenticatedUserAccount account = null;
private String accountRole = null;
@JsonProperty("permissions")
public List getPermissions()
{
return permissions;
}
@JsonProperty("permissions")
public void setPermissions(List permissions)
{
this.permissions = permissions;
}
@JsonProperty("userName")
public String getUserName()
{
return userName;
}
@JsonProperty("userName")
public void setUserName(String userName)
{
this.userName = userName;
}
@JsonProperty("identifier")
public String getIdentifier()
{
return identifier;
}
@JsonProperty("identifier")
public void setIdentifier(String identifier)
{
this.identifier = identifier;
}
@JsonProperty("accountStatus")
public String getAccountStatus()
{
return accountStatus;
}
@JsonProperty("accountStatus")
public void setAccountStatus(String accountStatus)
{
this.accountStatus = accountStatus;
}
@JsonProperty("account")
public AuthenticatedUserAccount getAccount()
{
return account;
}
@JsonProperty("account")
public void setAccount(AuthenticatedUserAccount account)
{
this.account = account;
}
@JsonProperty("accountRole")
public String getAccountRole()
{
return accountRole;
}
@JsonProperty("accountRole")
public void setAccountRole(String accountRole)
{
this.accountRole = accountRole;
}
@Override
public String toString()
{
StringBuilder sb = new StringBuilder();
sb.append("class AuthenticatedUser {\n");
sb.append(" permissions: ").append(permissions).append("\n");
sb.append(" userName: ").append(userName).append("\n");
sb.append(" identifier: ").append(identifier).append("\n");
sb.append(" accountStatus: ").append(accountStatus).append("\n");
sb.append(" account: ").append(account).append("\n");
sb.append(" accountRole: ").append(accountRole).append("\n");
sb.append("}\n");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy