SubjectInfo.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.analytics.synapse.accesscontrol.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.UUID;
/** Subject details. */
@Fluent
public final class SubjectInfo {
/*
* Principal Id
*/
@JsonProperty(value = "principalId", required = true)
private UUID principalId;
/*
* List of group Ids that the principalId is part of.
*/
@JsonProperty(value = "groupIds")
private List<UUID> groupIds;
/**
* Get the principalId property: Principal Id.
*
* @return the principalId value.
*/
public UUID getPrincipalId() {
return this.principalId;
}
/**
* Set the principalId property: Principal Id.
*
* @param principalId the principalId value to set.
* @return the SubjectInfo object itself.
*/
public SubjectInfo setPrincipalId(UUID principalId) {
this.principalId = principalId;
return this;
}
/**
* Get the groupIds property: List of group Ids that the principalId is part of.
*
* @return the groupIds value.
*/
public List<UUID> getGroupIds() {
return this.groupIds;
}
/**
* Set the groupIds property: List of group Ids that the principalId is part of.
*
* @param groupIds the groupIds value to set.
* @return the SubjectInfo object itself.
*/
public SubjectInfo setGroupIds(List<UUID> groupIds) {
this.groupIds = groupIds;
return this;
}
}