Class KafkaAuditHeader


  • @Validated
    @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen",
               date="2023-04-12T17:29:07.363401Z[Etc/UTC]")
    public class KafkaAuditHeader
    extends java.lang.Object
    This header records information about the context of an event as it is emitted into kafka and is intended to be used by the kafka audit application. For more information see go/kafkaauditheader
    • Constructor Detail

      • KafkaAuditHeader

        public KafkaAuditHeader()
    • Method Detail

      • getTime

        @NotNull
        @Min(-9223372036854775808L)
        @Max(9223372036854775807L)
        public @NotNull @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.Long getTime()
        The time at which the event was emitted into kafka. minimum: -9223372036854775808 maximum: 9223372036854775807
        Returns:
        time
      • setTime

        public void setTime​(java.lang.Long time)
      • getServer

        @NotNull
        public @NotNull java.lang.String getServer()
        The fully qualified name of the host from which the event is being emitted.
        Returns:
        server
      • setServer

        public void setServer​(java.lang.String server)
      • getInstance

        public java.lang.String getInstance()
        The instance on the server from which the event is being emitted. e.g. i001
        Returns:
        instance
      • setInstance

        public void setInstance​(java.lang.String instance)
      • getAppName

        @NotNull
        public @NotNull java.lang.String getAppName()
        The name of the application from which the event is being emitted. see go/appname
        Returns:
        appName
      • setAppName

        public void setAppName​(java.lang.String appName)
      • getMessageId

        @NotNull
        @Pattern(regexp="^[\u0000-\u00ff]*$")
        @Size(min=16,
              max=16)
        public @NotNull @Pattern(regexp="^[\u0000-\u00ff]*$") @Size(min=16,max=16) java.lang.String getMessageId()
        Get messageId
        Returns:
        messageId
      • setMessageId

        public void setMessageId​(java.lang.String messageId)
      • auditVersion

        public KafkaAuditHeader auditVersion​(java.lang.Integer auditVersion)
      • getAuditVersion

        @Min(-2147483648L)
        @Max(2147483647L)
        public @Min(-2147483648L) @Max(2147483647L) java.lang.Integer getAuditVersion()
        The version that is being used for auditing. In version 0, the audit trail buckets events into 10 minute audit windows based on the EventHeader timestamp. In version 1, the audit trail buckets events as follows: if the schema has an outer KafkaAuditHeader, use the outer audit header timestamp for bucketing; else if the EventHeader has an inner KafkaAuditHeader use that inner audit header's timestamp for bucketing minimum: -2147483648 maximum: 2147483647
        Returns:
        auditVersion
      • setAuditVersion

        public void setAuditVersion​(java.lang.Integer auditVersion)
      • getFabricUrn

        public java.lang.String getFabricUrn()
        The fabricUrn of the host from which the event is being emitted. Fabric Urn in the format of urn:li:fabric:{fabric_name}. See go/fabric.
        Returns:
        fabricUrn
      • setFabricUrn

        public void setFabricUrn​(java.lang.String fabricUrn)
      • clusterConnectionString

        public KafkaAuditHeader clusterConnectionString​(java.lang.String clusterConnectionString)
      • getClusterConnectionString

        public java.lang.String getClusterConnectionString()
        This is a String that the client uses to establish some kind of connection with the Kafka cluster. The exact format of it depends on specific versions of clients and brokers. This information could potentially identify the fabric and cluster with which the client is producing to or consuming from.
        Returns:
        clusterConnectionString
      • setClusterConnectionString

        public void setClusterConnectionString​(java.lang.String clusterConnectionString)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object