code: public Device withPermissions(DeviceCgroupPermission... permissions) {
          com.amazonaws.internal.SdkInternalList<String> permissionsCopy = new com.amazonaws.internal.SdkInternalList<String>(permissions.length);
          for (DeviceCgroupPermission value : permissions) {
              permissionsCopy.add(value.toString());
          }
          if (getPermissions() == null) {
              setPermissions(permissionsCopy);
          } else {
              getPermissions().addAll(permissionsCopy);
          }
          return this;
      }
docs: <p>
  The explicit permissions to provide to the container for the device. By default, the container has permissions
  for <code>read</code>, <code>write</code>, and <code>mknod</code> for the device.
  </p>
  
  @param permissions
  The explicit permissions to provide to the container for the device. By default, the container has
  permissions for <code>read</code>, <code>write</code>, and <code>mknod</code> for the device.
  @return Returns a reference to this object so that method calls can be chained together.
  @see DeviceCgroupPermission