Package com.ibm.fhir.audit.cadf
Class CadfResource
- java.lang.Object
 - 
- com.ibm.fhir.audit.cadf.CadfResource
 
 
- 
public final class CadfResource extends Object
Implementation of the CADF Resource type. Resource represents an actor in a CADF event: OBSERVER that reports the event, INITIATOR that performs the action that generates the event, or TARGET upon which the action is performed. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCadfResource.BuilderBuilder for immutable CadfResource objectsstatic classCadfResource.ParserParserstatic classCadfResource.WriterGenerates JSON from this object. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CadfResource.Builderbuilder()ArrayList<CadfEndpoint>getAddresses()ArrayList<CadfAttachment>getAttachments()CadfCredentialgetCredential()StringgetDomain()CadfGeolocationgetGeolocation()StringgetGeolocationId()StringgetHost()StringgetId()Return the resource ID.StringgetName()ResourceTypegetTypeURI() 
 - 
 
- 
- 
Method Detail
- 
getId
public String getId()
Return the resource ID. It can be used to reference the resource from other events in the same log.- Returns:
 - Resource ID string
 
 
- 
getGeolocation
public CadfGeolocation getGeolocation()
 
- 
getTypeURI
public ResourceType getTypeURI()
 
- 
getName
public String getName()
- Returns:
 - the name
 
 
- 
getDomain
public String getDomain()
- Returns:
 - the domain
 
 
- 
getCredential
public CadfCredential getCredential()
- Returns:
 - the credential
 
 
- 
getAddresses
public ArrayList<CadfEndpoint> getAddresses()
- Returns:
 - the addresses
 
 
- 
getHost
public String getHost()
- Returns:
 - the host
 
 
- 
getAttachments
public ArrayList<CadfAttachment> getAttachments()
- Returns:
 - the attachments
 
 
- 
getGeolocationId
public String getGeolocationId()
 
- 
builder
public static CadfResource.Builder builder()
 
 - 
 
 -