LoggedBy.java
package gov.nist.secauto.oscal.lib.model;
import gov.nist.secauto.metaschema.core.datatype.adapter.TokenAdapter;
import gov.nist.secauto.metaschema.core.datatype.adapter.UuidAdapter;
import gov.nist.secauto.metaschema.core.model.IBoundObject;
import gov.nist.secauto.metaschema.core.model.IMetaschemaData;
import gov.nist.secauto.metaschema.databind.model.annotations.BoundFlag;
import gov.nist.secauto.metaschema.databind.model.annotations.MetaschemaAssembly;
import java.lang.Override;
import java.lang.String;
import java.util.UUID;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Used to indicate who created a log entry in what role.
*/
@MetaschemaAssembly(
formalName = "Logged By",
description = "Used to indicate who created a log entry in what role.",
name = "logged-by",
moduleClass = OscalAssessmentCommonModule.class
)
public class LoggedBy implements IBoundObject {
private final IMetaschemaData __metaschemaData;
/**
* "A <a href=\"https://pages.nist.gov/OSCAL/concepts/identifier-use/#machine-oriented\">machine-oriented</a> identifier reference to the party who is making the log entry."
*/
@BoundFlag(
formalName = "Party UUID Reference",
description = "A [machine-oriented](https://pages.nist.gov/OSCAL/concepts/identifier-use/#machine-oriented) identifier reference to the party who is making the log entry.",
name = "party-uuid",
required = true,
typeAdapter = UuidAdapter.class
)
private UUID _partyUuid;
/**
* "A point to the role-id of the role in which the party is making the log entry."
*/
@BoundFlag(
formalName = "Actor Role",
description = "A point to the role-id of the role in which the party is making the log entry.",
name = "role-id",
typeAdapter = TokenAdapter.class
)
private String _roleId;
public LoggedBy() {
this(null);
}
public LoggedBy(IMetaschemaData data) {
this.__metaschemaData = data;
}
@Override
public IMetaschemaData getMetaschemaData() {
return __metaschemaData;
}
public UUID getPartyUuid() {
return _partyUuid;
}
public void setPartyUuid(UUID value) {
_partyUuid = value;
}
public String getRoleId() {
return _roleId;
}
public void setRoleId(String value) {
_roleId = value;
}
@Override
public String toString() {
return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).toString();
}
}