code: public Device withPermissions(String... permissions) {
          if (this.permissions == null) {
              setPermissions(new com.amazonaws.internal.SdkInternalList<String>(permissions.length));
          }
          for (String ele : permissions) {
              this.permissions.add(ele);
          }
          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>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setPermissions(java.util.Collection)} or {@link #withPermissions(java.util.Collection)} if you want to
  override the existing values.
  </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