package nl.gmta.btrfs.structure.stream;

import java.util.UUID;

public class BtrfsSnapshotCommand extends BtrfsStreamCommand {
    private final String path;
    private final UUID UUID;
    private final long CTransID;
    private final UUID cloneUUID;
    private final long cloneCTransID;

    public BtrfsSnapshotCommand(BtrfsStreamCommandHeader header, String path, UUID UUID, long CTransID, UUID cloneUUID, long cloneCTransID) {
        super(header);

        this.path = path;
        this.UUID = UUID;
        this.CTransID = CTransID;
        this.cloneUUID = cloneUUID;
        this.cloneCTransID = cloneCTransID;
    }

    public String getPath() {
        return this.path;
    }

    public UUID getUUID() {
        return this.UUID;
    }

    public long getCTransID() {
        return this.CTransID;
    }

    public UUID getCloneUUID() {
        return this.cloneUUID;
    }

    public long getCloneCTransID() {
        return this.cloneCTransID;
    }

    @Override
    public String toString() {
        return String.format(
            "%s{header=%s path=%s UUID=%s CTransID=%d cloneUUID=%s cloneCTransID=%d}",
            this.getClass().getSimpleName(),
            this.header,
            this.path,
            this.UUID,
            this.CTransID,
            this.cloneUUID,
            this.cloneCTransID
        );
    }
}

@@ -34,16 +34,42 @@
 tream;%0A%0A
+import java.util.Objects;%0A
 import j
@@ -499,20 +499,44 @@
 .path = 
+Objects.requireNonNull(
 path
+)
 ;%0A      
@@ -549,20 +549,44 @@
 .UUID = 
+Objects.requireNonNull(
 UUID
+)
 ;%0A      
@@ -634,24 +634,47 @@
 cloneUUID = 
+Objects.requireNonNull(
 cloneUUID;%0A 
@@ -666,24 +666,25 @@
 ll(cloneUUID
+)
 ;%0A        th

require non-null arguments