Package io.lakefs.clients.sdk.model
Class ExternalPrincipal
- java.lang.Object
-
- io.lakefs.clients.sdk.model.ExternalPrincipal
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ExternalPrincipal extends Object
ExternalPrincipal
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExternalPrincipal.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_SETTINGSstatic StringSERIALIZED_NAME_USER_ID
-
Constructor Summary
Constructors Constructor Description ExternalPrincipal()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalPrincipaladdSettingsItem(Map<String,String> settingsItem)booleanequals(Object o)static ExternalPrincipalfromJson(String jsonString)Create an instance of ExternalPrincipal given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetId()A unique identifier for the external principal i.e aws:sts::123:assumed-role/role-nameList<Map<String,String>>getSettings()Get settingsStringgetUserId()lakeFS user ID to associate with an external principal.inthashCode()ExternalPrincipalid(String id)ExternalPrincipalputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetId(String id)voidsetSettings(List<Map<String,String>> settings)ExternalPrincipalsettings(List<Map<String,String>> settings)voidsetUserId(String userId)StringtoJson()Convert an instance of ExternalPrincipal to an JSON stringStringtoString()ExternalPrincipaluserId(String userId)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USER_ID
public static final String SERIALIZED_NAME_USER_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SETTINGS
public static final String SERIALIZED_NAME_SETTINGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public ExternalPrincipal id(String id)
-
getId
@Nonnull public String getId()
A unique identifier for the external principal i.e aws:sts::123:assumed-role/role-name- Returns:
- id
-
setId
public void setId(String id)
-
userId
public ExternalPrincipal userId(String userId)
-
getUserId
@Nonnull public String getUserId()
lakeFS user ID to associate with an external principal.- Returns:
- userId
-
setUserId
public void setUserId(String userId)
-
settings
public ExternalPrincipal settings(List<Map<String,String>> settings)
-
addSettingsItem
public ExternalPrincipal addSettingsItem(Map<String,String> settingsItem)
-
putAdditionalProperty
public ExternalPrincipal putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the ExternalPrincipal instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ExternalPrincipal
-
fromJson
public static ExternalPrincipal fromJson(String jsonString) throws IOException
Create an instance of ExternalPrincipal given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExternalPrincipal
- Throws:
IOException- if the JSON string is invalid with respect to ExternalPrincipal
-
toJson
public String toJson()
Convert an instance of ExternalPrincipal to an JSON string- Returns:
- JSON string
-
-