class CreateVolumeSnapshot {

  public static void main(String[] args) {<FILL_FUNCTION_BODY>}
}

    try (VolumeSnapshotClient client = ClientFactory.newClient(args)) {
      System.out.println("Creating a volume snapshot");
      client.volumeSnapshots().inNamespace("default").create(new VolumeSnapshotBuilder()
          .withNewMetadata()
          .withName("my-snapshot")
          .endMetadata()
          .withNewSpec()
          .withNewSource()
          .withPersistentVolumeClaimName("my-pvc")
          .endSource()
          .endSpec()
          .build());
    }
  
<no_super_class>