code: public void marshall(UserProfile userProfile, ProtocolMarshaller protocolMarshaller) {
  
          if (userProfile == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(userProfile.getIamUserArn(), IAMUSERARN_BINDING);
              protocolMarshaller.marshall(userProfile.getName(), NAME_BINDING);
              protocolMarshaller.marshall(userProfile.getSshUsername(), SSHUSERNAME_BINDING);
              protocolMarshaller.marshall(userProfile.getSshPublicKey(), SSHPUBLICKEY_BINDING);
              protocolMarshaller.marshall(userProfile.getAllowSelfManagement(), ALLOWSELFMANAGEMENT_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.