1 package gov.nist.secauto.oscal.lib.model;
2
3 import gov.nist.secauto.metaschema.binding.model.annotations.BoundFlag;
4 import gov.nist.secauto.metaschema.binding.model.annotations.MetaschemaAssembly;
5 import gov.nist.secauto.metaschema.model.common.datatype.adapter.TokenAdapter;
6 import gov.nist.secauto.metaschema.model.common.datatype.adapter.UuidAdapter;
7 import java.lang.Override;
8 import java.lang.String;
9 import java.util.UUID;
10 import org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle;
11 import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
12
13
14
15
16 @MetaschemaAssembly(
17 formalName = "Logged By",
18 description = "Used to indicate who created a log entry in what role.",
19 name = "logged-by",
20 metaschema = OscalAssessmentCommonMetaschema.class
21 )
22 public class LoggedBy {
23 @BoundFlag(
24 formalName = "Party UUID Reference",
25 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.",
26 useName = "party-uuid",
27 required = true,
28 typeAdapter = UuidAdapter.class
29 )
30 private UUID _partyUuid;
31
32 @BoundFlag(
33 formalName = "Actor Role",
34 description = "A point to the role-id of the role in which the party is making the log entry.",
35 useName = "role-id",
36 typeAdapter = TokenAdapter.class
37 )
38 private String _roleId;
39
40 public LoggedBy() {
41 }
42
43 public UUID getPartyUuid() {
44 return _partyUuid;
45 }
46
47 public void setPartyUuid(UUID value) {
48 _partyUuid = value;
49 }
50
51 public String getRoleId() {
52 return _roleId;
53 }
54
55 public void setRoleId(String value) {
56 _roleId = value;
57 }
58
59 @Override
60 public String toString() {
61 return new ReflectionToStringBuilder(this, MultilineRecursiveToStringStyle.MULTI_LINE_STYLE).toString();
62 }
63 }