public CMASpaceMembership setEmail ( String email ) { if ( email == null ) { throw new IllegalArgumentException ( "email cannot be null." ) ; } if ( ! email . contains ( "@" ) ) { throw new IllegalArgumentException ( "email needs to contain an '@' symbol." ) ; } this . email = email ; return this ; }
Set the email address when creating a new membership .