public AttachPermission(String name){
  super(name);
  if (!name.equals("attachVirtualMachine") && !name.equals("createAttachProvider")) {
    throw new IllegalArgumentException("name: " + name);
  }
}

public AttachPermission ( String name ) { super ( name ) ; if ( ! name . equals ( "attachVirtualMachine" ) && ! name . equals ( "createAttachProvider" ) ) { throw new IllegalArgumentException ( "name: " + name ) ; } }
constructs a new attachpermission object .
