class CreateIoChaos {

  //apiVersion: chaos-mesh.org/v1alpha1
  //kind: IOChaos
  //metadata:
  //  name: io-delay-example
  //spec:
  //  action: latency
  //  mode: one
  //  selector:
  //    labelSelectors:
  //      app: etcd
  //  volumePath: /var/run/etcd
  //  path: "/var/run/etcd/**/*"
  //  delay: "100ms"
  //  percent: 50
  //  duration: "400s"
  //  scheduler:
  //    cron: "@every 10m"
  public static void main(String[] args) {<FILL_FUNCTION_BODY>}
}

    try (ChaosMeshClient client = ClientFactory.newClient(args)) {
      System.out.println("Creating a ioChaos");
      client.ioChaos().inNamespace("default").create(new IOChaosBuilder()
          .withNewMetadata()
          .withName("io-delay-example")
          .endMetadata()
          .withNewSpec()
          .withAction("latency")
          .withMode("one")
          .withNewSelector().withLabelSelectors(Collections.singletonMap("app", "etcd")).endSelector()
          .withVolumePath("/var/run/etcd")
          .withPath("/var/run/etc/**/*")
          .withPercent(50)
          .withDuration("400s")
          .endSpec()
          .build());
    }
  
<no_super_class>